[Android] Add ShowHiddenFiles flag for MediaBrowser

Geoffrey Métais git at videolan.org
Wed May 24 12:32:07 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed May 24 11:49:02 2017 +0200| [6fd911b753b5dd2ad8633fe6becccd829fc7c1bc] | committer: Geoffrey Métais

Add ShowHiddenFiles flag for MediaBrowser

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

 libvlc/src/org/videolan/libvlc/util/MediaBrowser.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
index ce073487f..07e2c92c3 100644
--- a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
+++ b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
@@ -52,6 +52,8 @@ public class MediaBrowser {
         public final static int Interact = 1;
         /** If this flag is set, slaves won't be attached to medias but will be added as a media. */
         public final static int NoSlavesAutodetect = 1 << 1;
+        /** If this flag is set, hidden fils won't be ignored */
+        public final static int ShowHiddenFiles = 1 << 2;
     }
 
     /**
@@ -218,6 +220,8 @@ public class MediaBrowser {
         media.addOption(IGNORE_LIST_OPTION + mIgnoreList);
         if ((flags & Flag.NoSlavesAutodetect) != 0)
             media.addOption(":no-sub-autodetect-file");
+        if ((flags & Flag.ShowHiddenFiles) != 0)
+            media.addOption(":show-hiddenfiles");
         int mediaFlags = Media.Parse.ParseNetwork;
         if ((flags & Flag.Interact) != 0)
             mediaFlags |= Media.Parse.DoInteract;



More information about the Android mailing list