From bb63ef2cfa70e29abdd708b042d734cd1e14fe17 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 2 Aug 2018 20:49:11 +0000 Subject: [PATCH] Prevent spam/archive for messages in outbox --- app/src/main/java/eu/faircode/email/FragmentMessage.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessage.java b/app/src/main/java/eu/faircode/email/FragmentMessage.java index e72c0f4f..8f790dce 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessage.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessage.java @@ -179,6 +179,8 @@ public class FragmentMessage extends Fragment { : R.drawable.baseline_visibility_24); actionSeen.setTitle(message.ui_seen ? R.string.title_unseen : R.string.title_seen); + bottom_navigation.getMenu().findItem(R.id.action_spam).setEnabled(message.account != null); + bottom_navigation.getMenu().findItem(R.id.action_archive).setEnabled(message.account != null); tvBody.setText(message.body == null ? null : Html.fromHtml(HtmlHelper.sanitize(getContext(), message.body, false)));