mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-08 05:45:25 +01:00
Prevent crash
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user