mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-04 03:43:55 +01:00
Deliver/pop on started instead of resumed
https://developer.android.com/guide/components/activities/activity-lifecycle#onstart
This commit is contained in:
@@ -1067,7 +1067,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
fragment.setArguments(aargs);
|
||||
fragment.setTargetFragment(FragmentAccount.this, REQUEST_SAVE);
|
||||
fragment.show(getFragmentManager(), "account:save");
|
||||
} else if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
||||
} else if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
getFragmentManager().popBackStack();
|
||||
}
|
||||
|
||||
@@ -1316,7 +1316,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
}
|
||||
});
|
||||
onSave(false);
|
||||
} else if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
||||
} else if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
getFragmentManager().popBackStack();
|
||||
break;
|
||||
case REQUEST_DELETE:
|
||||
@@ -1363,7 +1363,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, Void data) {
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
getFragmentManager().popBackStack();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user