mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
fix: sort order of playlists isn't shown properly
This commit is contained in:
parent
3fadb792bc
commit
4dd49946ad
@ -98,10 +98,13 @@ class LibraryFragment : Fragment() {
|
||||
}.show(childFragmentManager, CreatePlaylistDialog::class.java.name)
|
||||
}
|
||||
|
||||
binding.sortTV.setOnClickListener {
|
||||
val sortOptions = resources.getStringArray(R.array.playlistSortingOptions)
|
||||
val sortOptionValues = resources.getStringArray(R.array.playlistSortingOptionsValues)
|
||||
val order = PreferenceHelper.getString(PreferenceKeys.PLAYLISTS_ORDER, sortOptionValues.first())
|
||||
val orderIndex = sortOptionValues.indexOf(order)
|
||||
binding.sortTV.text = sortOptions[orderIndex]
|
||||
|
||||
binding.sortTV.setOnClickListener {
|
||||
BaseBottomSheet().apply {
|
||||
setSimpleItems(sortOptions.toList()) { index ->
|
||||
binding.sortTV.text = sortOptions[index]
|
||||
|
Loading…
Reference in New Issue
Block a user