From 2712c36b50bebe80210f64c3a91b1f4bf7415342 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 28 Apr 2022 09:28:02 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index fc5917eb40..6370c10d35 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -9290,6 +9290,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. if (owner.getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) manager.popBackStack("search", FragmentManager.POP_BACK_STACK_INCLUSIVE); + if (manager.isDestroyed()) + return; + Bundle args = new Bundle(); args.putLong("account", account); args.putLong("folder", folder);