[Android] Discover external storages

Geoffrey Métais git at videolan.org
Tue Nov 22 09:55:41 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov 22 09:54:57 2016 +0100| [b1cad228e50495cdafb1dc0f107795d2f840abac] | committer: Geoffrey Métais

Discover external storages

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

 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 f4418aa..b319108 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -245,7 +245,8 @@ public class VLCApplication extends Application {
             ml.discover(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getPath());
             ml.discover(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getPath());
             ml.discover(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PODCASTS).getPath());
-            //TODO manage external storages
+            for (String externalStorage : AndroidDevices.getExternalStorageDirectories())
+                ml.discover(externalStorage);
         }
     }
 }



More information about the Android mailing list