[Android] Revert to scan all internal storage by default

Geoffrey Métais git at videolan.org
Wed Apr 5 17:17:42 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr  5 17:10:57 2017 +0200| [7009d2b97bf2376d35b89a5672ad4e2af4499e3c] | committer: Geoffrey Métais

Revert to scan all internal storage by default

> https://code.videolan.org/videolan/vlc-android/commit/7009d2b97bf2376d35b89a5672ad4e2af4499e3c
---

 vlc-android/src/org/videolan/vlc/MediaParsingService.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index 31fc75c..adc1f8f 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -142,11 +142,9 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
                     if (mMedialibrary.init(MediaParsingService.this)) {
                         LocalBroadcastManager.getInstance(MediaParsingService.this).sendBroadcast(new Intent(VLCApplication.ACTION_MEDIALIBRARY_READY));
                         if (shouldInit) {
-                            for (String storage : storages)
-                                for (String folder : Medialibrary.getBlackList())
-                                    mMedialibrary.banFolder(storage + folder);
-                            for (File folder : Medialibrary.getDefaultFolders())
-                                mMedialibrary.discover(folder.getPath());
+                            for (String folder : Medialibrary.getBlackList())
+                                mMedialibrary.banFolder(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY + folder);
+                            mMedialibrary.discover(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY);
                         } else if (upgrade) {
                             mMedialibrary.forceParserRetry();
                         }



More information about the Android mailing list