[Android] Fix play item in ctx not shown on browser items
Nicolas Pomepuy
git at videolan.org
Mon Dec 12 07:20:17 UTC 2022
vlc-android | branch: 3.5.x | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Dec 1 13:58:24 2022 +0100| [cc11f2a3c36218680a2aa97311c2b91471a417f6] | committer: Nicolas Pomepuy
Fix play item in ctx not shown on browser items
Fixes #2782
(cherry picked from commit 0b786cd44dc444b14b3ec66b880bf59953415d55)
> https://code.videolan.org/videolan/vlc-android/commit/cc11f2a3c36218680a2aa97311c2b91471a417f6
---
.../vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt b/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
index 7a009f00f9..b419a4310f 100644
--- a/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
@@ -323,7 +323,7 @@ abstract class BrowserProvider(val context: Context, val dataset: LiveDataset<Me
}
directories.addAll(files)
sort(directories as MutableList<MediaLibraryItem>)
- withContext(coroutineContextProvider.Main) { foldersContentMap.put(item, directories) }
+ withContext(coroutineContextProvider.Main) { foldersContentMap.put(item, directories.toMutableList()) }
}
directories.clear()
files.clear()
More information about the Android
mailing list