[Android] Do not add public directory as external storage
Geoffrey Métais
git at videolan.org
Mon Jan 2 18:42:49 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jan 2 18:41:42 2017 +0100| [db3014e0caa6097ec764047e214bb10d538bad9f] | committer: Geoffrey Métais
Do not add public directory as external storage
> https://code.videolan.org/videolan/vlc-android/commit/db3014e0caa6097ec764047e214bb10d538bad9f
---
vlc-android/src/org/videolan/vlc/VLCApplication.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index 4b2cdc2..c871f55 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -260,7 +260,8 @@ public class VLCApplication extends Application {
if (folder.exists())
medialibrary.discover(folder.getPath());
for (String externalStorage : AndroidDevices.getExternalStorageDirectories())
- medialibrary.discover(externalStorage);
+ if (!TextUtils.equals(externalStorage, AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY))
+ medialibrary.discover(externalStorage);
}
}
}
More information about the Android
mailing list