mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Deliver/pop on started instead of resumed
https://developer.android.com/guide/components/activities/activity-lifecycle#onstart
This commit is contained in:
@@ -68,7 +68,7 @@ public class FragmentBase extends Fragment {
|
||||
}
|
||||
|
||||
protected void finish() {
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
getFragmentManager().popBackStack();
|
||||
else
|
||||
finish = true;
|
||||
|
||||
Reference in New Issue
Block a user