Prevent crash

pull/207/head
M66B 3 years ago
parent 09a9c51f69
commit 1783d15f40

@ -1254,6 +1254,9 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
@Override
public void onBackStackChanged() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return;
int count = getSupportFragmentManager().getBackStackEntryCount();
if (count == 0)
finish();

Loading…
Cancel
Save