Merge pull request #1793 from shantanu1k/sort-subtitles-list

natural sort of the subtitles language for easier navigation
This commit is contained in:
Bnyro 2022-11-08 18:33:58 +01:00 committed by GitHub
commit 2516a10cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ class PlayerSettings : BasePreferenceFragment() {
}
private fun setupSubtitlePref(preference: ListPreference) {
val locales = LocaleHelper.getAvailableLocales()
val locales = LocaleHelper.getAvailableLocales().sortedBy { it.name }
val localeNames = locales.map { it.name }
.toMutableList()
localeNames.add(0, requireContext().getString(R.string.none))