Prevent crash

This commit is contained in:
M66B 2022-04-28 17:44:33 +02:00
parent 09a9c51f69
commit 1783d15f40
1 changed files with 3 additions and 0 deletions

View File

@ -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();