fix(settings/general): Incorrect sorting

This commit is contained in:
Ahmad Ansori Palembani 2024-11-27 13:37:34 +07:00
parent 65682bb5bd
commit 34818eb7de
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -188,7 +188,7 @@ class SettingsGeneralController : SettingsLegacyController() {
eventType = parser.next()
}
langs.sortBy { it.displayName }
langs.sortBy { it.localizedDisplayName }
langs.add(0, Language("", context.systemLangContext.getString(MR.strings.system_default), null))
entries = langs.map { it.localizedDisplayName }