Fix check for preferred locale
This commit is contained in:
parent
24c8048d81
commit
96a44f0bee
1 changed files with 6 additions and 4 deletions
|
@ -383,10 +383,12 @@ public class OsmandApplication extends MultiDexApplication {
|
||||||
if (defaultLocale == null) {
|
if (defaultLocale == null) {
|
||||||
defaultLocale = Locale.getDefault();
|
defaultLocale = Locale.getDefault();
|
||||||
}
|
}
|
||||||
if (!"".equals(country)) {
|
if (!"".equals(lang)) {
|
||||||
preferredLocale = new Locale(lang, country);
|
if (!"".equals(country)) {
|
||||||
} else {
|
preferredLocale = new Locale(lang, country);
|
||||||
preferredLocale = new Locale(lang);
|
} else {
|
||||||
|
preferredLocale = new Locale(lang);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Locale selectedLocale = null;
|
Locale selectedLocale = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue