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