Skip to content
Snippets Groups Projects
Commit 4196caae authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix inverted logic and set uuid for internal

parent c4c6499b
No related branches found
No related tags found
No related merge requests found
......@@ -248,8 +248,10 @@ public class VLCApplication extends Application {
return;
medialibrary.setup();
String[] storages = AndroidDevices.getMediaDirectories();
for (String storage : storages)
medialibrary.addDevice(storage, storage, TextUtils.equals(storage, AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY));
for (String storage : storages) {
boolean isMainStorage = TextUtils.equals(storage, AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY);
medialibrary.addDevice(isMainStorage ? "main-storage" : storage, storage, !isMainStorage);
}
if (medialibrary.init(getAppContext())) {
LocalBroadcastManager.getInstance(instance).sendBroadcast(new Intent(ACTION_MEDIALIBRARY_READY));
if (medialibrary.getFoldersList().length == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment