mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
truly make sure english is not added twice for new users
more fixes to 177e0cfcae
basically
This commit is contained in:
parent
85609b1c80
commit
ac17795391
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ class ExtensionManager(
|
|||
val deviceLanguage = Locale.getDefault().language
|
||||
val defaultLanguages = preferences.enabledLanguages().defaultValue
|
||||
val languagesToEnable = availableLanguages.filter {
|
||||
it != deviceLanguage && it.startsWith(deviceLanguage)
|
||||
it != deviceLanguage && it.startsWith(deviceLanguage) && !it.startsWith("en")
|
||||
}
|
||||
|
||||
preferences.enabledLanguages().set(defaultLanguages + languagesToEnable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue