From fa562dc3915db5036297eab0f3eb100c269f48a0 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 28 May 2019 13:47:55 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index e497f05688..17f563acf5 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -779,7 +779,7 @@ public class FragmentCompose extends FragmentBase { menu.findItem(R.id.menu_zoom).setEnabled(!busy); menu.findItem(R.id.menu_clear).setEnabled(!busy); - menu.findItem(R.id.menu_contact_group).setEnabled(!busy); + menu.findItem(R.id.menu_contact_group).setEnabled(!busy && hasPermission(Manifest.permission.READ_CONTACTS)); menu.findItem(R.id.menu_answer).setEnabled(!busy); menu.findItem(R.id.menu_plain_only).setEnabled(!busy); menu.findItem(R.id.menu_encrypt).setEnabled(!busy);