mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
sorts the subtitles languages list
This commit is contained in:
parent
019a5b1bec
commit
9f4723a057
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user