[Android] Parse subdirectories at root level on peripherals

Geoffrey Métais git at videolan.org
Thu Feb 18 14:50:59 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 18 14:49:36 2016 +0100| [0248350f905a3e2e644bd23f0355426e6a2eb7f8] | committer: Geoffrey Métais

Parse subdirectories at root level on peripherals

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

 vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index aeba943..3105880 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -500,7 +500,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
     }
 
     protected void parseSubDirectories() {
-        if (mRoot || mCurrentParsedPosition == -1 || mAdapter.isEmpty())
+        if ((mRoot && this instanceof NetworkBrowserFragment) || mCurrentParsedPosition == -1 || mAdapter.isEmpty())
             return;
         mFoldersContentLists.clear();
         if (mMediaBrowser == null)



More information about the Android mailing list