[Android] Fix the sort not applied in the browser display settings
Nicolas Pomepuy
git at videolan.org
Wed Apr 10 16:13:11 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Mar 28 09:58:50 2024 +0100| [ae4808ce9a2537abc1b819ecdf974d8084e45f44] | committer: Duncan McNamara
Fix the sort not applied in the browser display settings
> https://code.videolan.org/videolan/vlc-android/commit/ae4808ce9a2537abc1b819ecdf974d8084e45f44
---
.../vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
index d329e2e0d2..2f335538e7 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
@@ -300,6 +300,8 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
@Suppress("UNCHECKED_CAST") val sort = value as Pair<Int, Boolean>
viewModel.desc = sort.second
viewModel.sort = sort.first
+ viewModel.provider.desc = sort.second
+ viewModel.provider.sort = sort.first
refresh()
viewModel.saveSort()
}
More information about the Android
mailing list