[Android] No need for media directories list to be static

Geoffrey Métais git at videolan.org
Fri Apr 14 17:29:12 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 14 15:01:46 2017 +0200| [d38ccb05e749c5a05f94fccf5641db9389e6f680] | committer: Geoffrey Métais

No need for media directories list to be static

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

 .../src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
index f377ff1..77ee944 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
@@ -39,13 +39,12 @@ import java.util.Arrays;
 
 class StorageBrowserAdapter extends BaseBrowserAdapter {
 
-    private static ArrayList<String> mMediaDirsLocation;
-    private static ArrayList<String> mCustomDirsLocation;
+    private ArrayList<String> mMediaDirsLocation;
+    private ArrayList<String> mCustomDirsLocation;
 
     StorageBrowserAdapter(BaseBrowserFragment fragment) {
         super(fragment);
-        if (mMediaDirsLocation == null && mCustomDirsLocation == null)
-            updateMediaDirs();
+        updateMediaDirs();
     }
 
     @Override



More information about the Android mailing list