[Android] Fix custom storage not displayed immediatly
Geoffrey Métais
git at videolan.org
Mon Dec 5 15:32:07 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Dec 5 11:18:38 2016 +0100| [6dce8b6982a7f513d52757722e2d6651ceb9d43d] | committer: Geoffrey Métais
Fix custom storage not displayed immediatly
> https://code.videolan.org/videolan/vlc-android/commit/6dce8b6982a7f513d52757722e2d6651ceb9d43d
---
.../src/org/videolan/vlc/gui/browser/StorageBrowserFragment.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserFragment.java
index c517f4c..b0f2c37 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserFragment.java
@@ -120,9 +120,12 @@ public class StorageBrowserFragment extends FileBrowserFragment {
}
customLoop:
for (String customDir : customDirectories) {
- for (String mediaDirLocation : storages)
+ for (String mediaDirLocation : storages) {
+ if (TextUtils.isEmpty(mediaDirLocation))
+ continue;
if (customDir.startsWith(mediaDirLocation))
continue customLoop;
+ }
storage = new Storage(Uri.parse(customDir));
mAdapter.addItem(storage, false, false);
}
More information about the Android
mailing list