From 176edb0c57a176e374858354c7f25d9b1452c382 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 16 Feb 2022 13:13:05 +0100 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 7d9c4f10f5..e6f6ab0044 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -6741,6 +6741,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. @Override public void run() { try { + if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) + return; adapter.notifyDataSetChanged(); } catch (Throwable ex) { Log.e(ex);