From 69b2808eb900cd1861e0ce084b6b998cf924c073 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 27 Mar 2020 11:27:43 +0100 Subject: [PATCH] Mark all languages selected --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 777fb5e643..6a7c72939b 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -3648,7 +3648,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. String current = prefs.getString("filter_language", null); PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(getContext(), getViewLifecycleOwner(), vwAnchor); - popupMenu.getMenu().add(Menu.NONE, 0, 0, R.string.title_language_all); + + String all = getString(R.string.title_language_all) + (current == null ? " ★" : ""); + popupMenu.getMenu().add(Menu.NONE, 0, 0, all); for (int i = 0; i < languages.size(); i++) { String language = languages.get(i);