From f15785ce78073bf9a19e613f53359ebd4a3c71e1 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 25 Jun 2020 16:02:25 +0200 Subject: [PATCH] Prevent crash --- .../eu/faircode/email/AdapterAccount.java | 9 +++++- .../eu/faircode/email/AdapterContact.java | 7 +++-- .../java/eu/faircode/email/AdapterFolder.java | 9 +++++- .../eu/faircode/email/AdapterMessage.java | 30 ++++++++++++++++--- .../faircode/email/FragmentOptionsMisc.java | 1 + 5 files changed, 48 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterAccount.java b/app/src/main/java/eu/faircode/email/AdapterAccount.java index 87484fb313..47b7bbe08e 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAccount.java +++ b/app/src/main/java/eu/faircode/email/AdapterAccount.java @@ -22,6 +22,7 @@ package eu.faircode.email; import android.annotation.TargetApi; import android.app.NotificationChannel; import android.app.NotificationManager; +import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; @@ -42,6 +43,7 @@ import android.widget.Button; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; +import android.widget.Toast; import androidx.annotation.NonNull; import androidx.appcompat.widget.PopupMenu; @@ -394,7 +396,12 @@ public class AdapterAccount extends RecyclerView.Adapter