[Android] Fix play item in ctx not shown on browser items

Nicolas Pomepuy git at videolan.org
Thu Dec 1 13:07:45 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Dec  1 13:58:24 2022 +0100| [0b786cd44dc444b14b3ec66b880bf59953415d55] | committer: Nicolas Pomepuy

Fix play item in ctx not shown on browser items

Fixes #2782

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

 .../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 5516278d30..d79139a913 100644
--- a/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
@@ -324,7 +324,7 @@ abstract class BrowserProvider(val context: Context, val dataset: LiveDataset<Me
                         directories.addAll(files)
                         @Suppress("UNCHECKED_CAST")
                         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