From d0e73d5d1508ed1808107720333d71e452b80e02 Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 30 May 2016 10:41:46 +0200 Subject: [PATCH] include exceptions --- OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java index 75ae3c96c4..88043ef0f5 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java @@ -548,6 +548,11 @@ public class ConfigureMapMenu { if (i1 != i2) { return i1 < i2 ? -1 : 1; } + i1 = lhs.equals(getString(R.string.system_locale) + " (" + getString(R.string.system_locale_no_translate) + ")") ? 0 : (lhs.equals(getString(R.string.lang_en)) ? 1 : 2); + i1 = rhs.equals(getString(R.string.system_locale) + " (" + getString(R.string.system_locale_no_translate) + ")") ? 0 : (rhs.equals(getString(R.string.lang_en)) ? 1 : 2); + if (i1 != i2) { + return i1 < i2 ? -1 : 1; + } return mp.get(lhs).compareTo(mp.get(rhs)); } });