mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
Merge pull request #1793 from shantanu1k/sort-subtitles-list
natural sort of the subtitles language for easier navigation
This commit is contained in:
commit
2516a10cab
@ -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…
x
Reference in New Issue
Block a user