[Android] Remove the TV forced file browsing sort as it breaks the default sorting

Nicolas Pomepuy git at videolan.org
Wed Feb 9 14:56:38 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jan 18 09:45:52 2022 +0100| [e1f9cae46674dbcda769804d950e463f2eb9700c] | committer: Nicolas Pomepuy

Remove the TV forced file browsing sort as it breaks the default sorting

Fixes #2321

> https://code.videolan.org/videolan/vlc-android/commit/e1f9cae46674dbcda769804d950e463f2eb9700c
---

 .../src/org/videolan/vlc/viewmodels/browser/BrowserModel.kt         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/viewmodels/browser/BrowserModel.kt b/application/vlc-android/src/org/videolan/vlc/viewmodels/browser/BrowserModel.kt
index 5a502147c..f4b417870 100644
--- a/application/vlc-android/src/org/videolan/vlc/viewmodels/browser/BrowserModel.kt
+++ b/application/vlc-android/src/org/videolan/vlc/viewmodels/browser/BrowserModel.kt
@@ -65,10 +65,10 @@ open class BrowserModel(
     private val tv = Settings.showTvUi
 
     override val provider: BrowserProvider = when (type) {
-        TYPE_PICKER -> FilePickerProvider(context, dataset, url, pickerType = pickerType).also { if (tv) it.desc = desc }
-        TYPE_NETWORK -> NetworkProvider(context, dataset, url, showHiddenFiles).also { if (tv) it.desc = desc }
+        TYPE_PICKER -> FilePickerProvider(context, dataset, url, pickerType = pickerType)
+        TYPE_NETWORK -> NetworkProvider(context, dataset, url, showHiddenFiles)
         TYPE_STORAGE -> StorageProvider(context, dataset, url, showHiddenFiles)
-        else -> FileBrowserProvider(context, dataset, url, showHiddenFiles = showHiddenFiles, showDummyCategory = showDummyCategory).also { if (tv) it.desc = desc }
+        else -> FileBrowserProvider(context, dataset, url, showHiddenFiles = showHiddenFiles, showDummyCategory = showDummyCategory)
     }
 
     override val loading = provider.loading



More information about the Android mailing list