Mark all languages selected

pull/178/head
M66B 5 years ago
parent 95e662923f
commit 69b2808eb9

@ -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);

Loading…
Cancel
Save