mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
7bfc1547e7
commit
1dcafe01df
|
@ -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…
Reference in New Issue