Merge pull request #5342 from osmandapp/WikipediaImprovements
added sort languages for wikivoyage popupMenu
This commit is contained in:
commit
5d91fb2ed0
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