This commit is contained in:
wangcongtao
2020-01-08 11:10:40 +08:00
parent 46c713cdca
commit 6b1b06e0a8

View File

@@ -174,10 +174,11 @@ public class MainActivity extends MvpActivity< MainView, MainPresenter > impleme
@Override
public void onBackPressed() {
super.onBackPressed();
if ( getSupportFragmentManager().getBackStackEntryCount() > 0 ) {
getSupportFragmentManager().popBackStack();
if ( FragmentStack.getInstance().isEmpty() ) {
super.onBackPressed();
return;
}
FragmentStack.getInstance().pop();
}
@Override