From 6cc8fbd1e342213470e0b311e229e32c95524bec Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 23 Aug 2021 10:23:49 +0200 Subject: [PATCH] Is this a good idea? --- app/src/main/java/eu/faircode/email/ActivityCompose.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ActivityCompose.java b/app/src/main/java/eu/faircode/email/ActivityCompose.java index caa3acc42c..0573ae1973 100644 --- a/app/src/main/java/eu/faircode/email/ActivityCompose.java +++ b/app/src/main/java/eu/faircode/email/ActivityCompose.java @@ -222,6 +222,9 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB args.putLong("account", -1); } + //if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) + // getSupportFragmentManager().popBackStack("compose", FragmentManager.POP_BACK_STACK_INCLUSIVE); + FragmentCompose fragment = new FragmentCompose(); fragment.setArguments(args);