fix logical error
This commit is contained in:
parent
e67e08bf24
commit
5481c0ebfe
2 changed files with 6 additions and 6 deletions
|
@ -263,7 +263,7 @@ public class SettingsGeneralActivity extends SettingsBaseActivity implements OnR
|
|||
getString(R.string.lang_vi) + incompleteSuffix,
|
||||
getString(R.string.lang_cy) + incompleteSuffix,};
|
||||
String[] valuesPl = ConfigureMapMenu.getSortedMapNamesIds(this, entrieValues, entrieValues);
|
||||
String[] idsPl = ConfigureMapMenu.getSortedMapNamesIds(this, entries, valuesPl);
|
||||
String[] idsPl = ConfigureMapMenu.getSortedMapNamesIds(this, entrieValues, entries);
|
||||
registerListPreference(settings.PREFERRED_LOCALE, screen, valuesPl, idsPl);
|
||||
|
||||
// Display "Device language" in Latin for all non-en languages
|
||||
|
|
|
@ -547,11 +547,11 @@ public class ConfigureMapMenu {
|
|||
if (i1 != i2) {
|
||||
return i1 < i2 ? -1 : 1;
|
||||
}
|
||||
i1 = lhs.equals(ctx.getString(R.string.system_locale) + " (" + ctx.getString(R.string.system_locale_no_translate) + ")") ? 0 : (lhs.equals(ctx.getString(R.string.lang_en)) ? 1 : 2);
|
||||
i1 = rhs.equals(ctx.getString(R.string.system_locale) + " (" + ctx.getString(R.string.system_locale_no_translate) + ")") ? 0 : (rhs.equals(ctx.getString(R.string.lang_en)) ? 1 : 2);
|
||||
if (i1 != i2) {
|
||||
return i1 < i2 ? -1 : 1;
|
||||
}
|
||||
//i1 = lhs.equals(ctx.getString(R.string.system_locale) + " (" + ctx.getString(R.string.system_locale_no_translate) + ")") ? 0 : (lhs.equals(ctx.getString(R.string.lang_en)) ? 1 : 2);
|
||||
//i2 = rhs.equals(ctx.getString(R.string.system_locale) + " (" + ctx.getString(R.string.system_locale_no_translate) + ")") ? 0 : (rhs.equals(ctx.getString(R.string.lang_en)) ? 1 : 2);
|
||||
//if (i1 != i2) {
|
||||
// return i1 < i2 ? -1 : 1;
|
||||
//}
|
||||
return mp.get(lhs).compareTo(mp.get(rhs));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue