Fix #3282
This commit is contained in:
parent
b164ca0dd6
commit
e721c68976
1 changed files with 1 additions and 1 deletions
|
@ -707,7 +707,7 @@ public class OsmandApplication extends MultiDexApplication {
|
||||||
} else {
|
} else {
|
||||||
lang = Locale.getDefault().getLanguage();
|
lang = Locale.getDefault().getLanguage();
|
||||||
}
|
}
|
||||||
if (lang != null && lang.length() > 2) {
|
if (lang != null && lang.length() > 3) {
|
||||||
lang = lang.substring(0, 2).toLowerCase();
|
lang = lang.substring(0, 2).toLowerCase();
|
||||||
}
|
}
|
||||||
return lang;
|
return lang;
|
||||||
|
|
Loading…
Reference in a new issue