mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-08 00:39:54 +00:00
Fix: Respect country in locale language (close #151)
This commit is contained in:
parent
7d9ca23f09
commit
01f8043f6e
@ -119,7 +119,7 @@ object Utils {
|
||||
fun Context.setLanguage(): Configuration {
|
||||
var setLocalCode = Preferences[Preferences.Key.Language]
|
||||
if (setLocalCode == PREFS_LANGUAGE_DEFAULT) {
|
||||
setLocalCode = Locale.getDefault().language
|
||||
setLocalCode = Locale.getDefault().toString()
|
||||
}
|
||||
val config = resources.configuration
|
||||
val sysLocale = if (Android.sdk(24)) config.locales[0] else config.locale
|
||||
|
Loading…
x
Reference in New Issue
Block a user