Prevent crash

This commit is contained in:
M66B 2022-04-28 17:44:33 +02:00
parent 7bfc1547e7
commit 1dcafe01df
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();