[Android] Exclude Storage browser from sortable browsers

Geoffrey Métais git at videolan.org
Wed Jul 12 12:17:27 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 12 11:43:33 2017 +0200| [22aefb3c47234c2934345c761119be9ca78a1441] | committer: Geoffrey Métais

Exclude Storage browser from sortable browsers

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

 vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java | 3 ++-
 1 file changed, 2 insertions(+), 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 e433bad88..07849e12d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -377,7 +377,8 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
 
     @Override
     public void refresh() {
-        if ((this instanceof NetworkBrowserFragment && mRoot) || this instanceof FilePickerFragment)
+        if ((this instanceof NetworkBrowserFragment && mRoot) || this instanceof FilePickerFragment
+                || this instanceof StorageBrowserFragment)
             mAdapter.clear();
         else {
             refreshList = new ArrayList<>();



More information about the Android mailing list