From f1a171261f7f53ff438b078f77d2f06ff95aa20f Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 5 Jan 2019 18:30:37 +0000 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index e53d7f093b..90d88ad6c5 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -2049,6 +2049,8 @@ public class FragmentMessages extends FragmentEx { }); snackbar.show(); + final Context context = getContext().getApplicationContext(); + // Wait new Handler().postDelayed(new Runnable() { @Override @@ -2059,8 +2061,6 @@ public class FragmentMessages extends FragmentEx { if (snackbar.isShown()) snackbar.dismiss(); - final Context context = getContext().getApplicationContext(); - new Thread(new Runnable() { @Override public void run() {