[Android] Ignore useless folders on external storages

Geoffrey Métais git at videolan.org
Fri May 19 15:54:03 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 19 14:06:41 2017 +0200| [7a5eac5179e88dd402764ee01c7c31d7131f0e3d] | committer: Geoffrey Métais

Ignore useless folders on external storages

> https://code.videolan.org/videolan/vlc-android/commit/7a5eac5179e88dd402764ee01c7c31d7131f0e3d
---

 vlc-android/src/org/videolan/vlc/MediaParsingService.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index 5d10035..1539bd1 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -181,6 +181,8 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
                 if (TextUtils.isEmpty(uuid))
                     uuid = "root";
                 mMedialibrary.addDevice(uuid, path, true, true);
+                for (String folder : Medialibrary.getBlackList())
+                    mMedialibrary.banFolder(path + folder);
             }
         }
     }



More information about the Android mailing list