Deliver/pop on started instead of resumed

https://developer.android.com/guide/components/activities/activity-lifecycle#onstart
This commit is contained in:
M66B
2019-07-27 08:02:00 +02:00
parent 9d234aa9a4
commit 0191240a27
13 changed files with 56 additions and 56 deletions

View File

@@ -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;