From bf835e22075e6311835300b1a97e3dfd94c65863 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 25 Jun 2019 10:53:06 +0200 Subject: [PATCH] Added some more menu titles --- app/src/main/java/eu/faircode/email/AdapterAccount.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterAnswer.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterIdentity.java | 2 ++ app/src/main/java/eu/faircode/email/AdapterRule.java | 2 ++ app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterAccount.java b/app/src/main/java/eu/faircode/email/AdapterAccount.java index 1c4aabfef8..0f8d12e869 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAccount.java +++ b/app/src/main/java/eu/faircode/email/AdapterAccount.java @@ -195,6 +195,8 @@ public class AdapterAccount extends RecyclerView.Adapter { PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(context, powner, view); + popupMenu.getMenu().add(Menu.NONE, 0, 0, rule.name).setEnabled(false); + popupMenu.getMenu().add(Menu.NONE, R.string.title_rule_enabled, 1, R.string.title_rule_enabled) .setCheckable(true).setChecked(rule.enabled); popupMenu.getMenu().add(Menu.NONE, R.string.title_rule_execute, 2, R.string.title_rule_execute) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index a0b928934f..64d8cc55e9 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -631,7 +631,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. protected void onExecuted(Bundle args, Map> result) { PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(getContext(), getViewLifecycleOwner(), fabSearch); - popupMenu.getMenu().add(R.string.title_search_in).setEnabled(false); + popupMenu.getMenu().add(Menu.NONE, 0, 0, R.string.title_search_in).setEnabled(false); int order = 1; for (EntityAccount account : result.keySet()) {