mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-29 09:39:03 +03:00
set default locale when changing app language
This commit is contained in:
parent
c514fec3fa
commit
4d4ed7330d
2 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,7 @@ android {
|
|||
dimension = "default"
|
||||
}
|
||||
create("dev") {
|
||||
resConfigs("en", "xxhdpi")
|
||||
resConfigs("en", "fr", "de", "ar", "xxhdpi")
|
||||
dimension = "default"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,6 +62,7 @@ object LocaleHelper {
|
|||
} else {
|
||||
newConfiguration.setLocale(appLocale)
|
||||
}
|
||||
Locale.setDefault(appLocale)
|
||||
return ContextWrapper(context.createConfigurationContext(newConfiguration))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue