added sort languages for wikivoyage popupMenu
This commit is contained in:
parent
7ebce6878e
commit
2e55393c4f
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,8 @@ public class WikivoyageArticleDialogFragment extends WikiArticleBaseDialogFragme
|
|||
for (String n : langs) {
|
||||
names.put(n, FileNameTranslationHelper.getVoiceName(getContext(), n));
|
||||
}
|
||||
for (final Map.Entry<String, String> e : names.entrySet()) {
|
||||
Map<String, String> sortedNames = AndroidUtils.sortByValue(names);
|
||||
for (final Map.Entry<String, String> e : sortedNames.entrySet()) {
|
||||
final String lang = e.getValue();
|
||||
final String langKey = e.getKey();
|
||||
MenuItem item = popup.getMenu().add(lang);
|
||||
|
|
Loading…
Reference in a new issue