From a8d9372b0976df27af8bc5b2683161d6b36851ef Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 21 Jul 2023 17:46:47 +0200 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 +-- 1 file changed, 1 insertion(+), 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 7750bfc001..61349b7d88 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -5680,7 +5680,6 @@ public class FragmentMessages extends FragmentBase boolean language_detection = prefs.getBoolean("language_detection", false); String filter_language = prefs.getString("filter_language", null); boolean perform_expunge = prefs.getBoolean("perform_expunge", true); - boolean debug = prefs.getBoolean("debug", false); boolean large_buttons = prefs.getBoolean("large_buttons", false); boolean compact = prefs.getBoolean("compact", false); boolean confirm_links = prefs.getBoolean("confirm_links", true); @@ -5831,7 +5830,7 @@ public class FragmentMessages extends FragmentBase menu.findItem(R.id.menu_force_send).setVisible(outbox); menu.findItem(R.id.menu_expunge).setVisible(viewType == AdapterMessage.ViewType.FOLDER && - (perform_expunge || debug)); + (!perform_expunge || BuildConfig.DEBUG)); menu.findItem(R.id.menu_edit_properties).setVisible(viewType == AdapterMessage.ViewType.FOLDER && !outbox);