Fix language settings

This commit is contained in:
topjohnwu 2022-01-25 01:31:15 -08:00
parent ab2cc72814
commit 95353ce9eb

View File

@ -62,6 +62,7 @@ object Language : BaseSettingsItem.Selector() {
entryValues = values
val selectedLocale = currentLocale.getDisplayName(currentLocale)
value = names.indexOfFirst { it == selectedLocale }.let { if (it == -1) 0 else it }
notifyPropertyChanged(BR.description)
}
}
}