[Android] Browser: Don't interact on subdirectories parsing

Geoffrey Métais git at videolan.org
Mon Sep 9 16:21:40 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Sep  9 15:49:48 2019 +0200| [8ab9f00f1749fdb5690724a5f0c5abaf7480e8dc] | committer: Geoffrey Métais

Browser: Don't interact on subdirectories parsing

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

 vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt b/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
index 760b5eb43..036c3fcf4 100644
--- a/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
+++ b/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
@@ -196,7 +196,7 @@ abstract class BrowserProvider(val context: Context, val dataset: LiveDataset<Me
                     }
                     // request parsing
                     browserChannel = Channel(Channel.UNLIMITED)
-                    mediabrowser?.browse(current.uri, getFlags())
+                    mediabrowser?.browse(current.uri, if (showHiddenFiles) MediaBrowser.Flag.ShowHiddenFiles else 0)
                     // retrieve subitems
                     for (media in browserChannel) {
                         val mw = findMedia(media) ?: continue



More information about the Android mailing list