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

Geoffrey Métais git at videolan.org
Tue Sep 10 15:30:28 CEST 2019


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

Browser: Don't interact on subdirectories parsing

(cherry picked from commit 8ab9f00f1749fdb5690724a5f0c5abaf7480e8dc)

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

 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