[Android] Udpate protocole only at root level

Geoffrey Métais git at videolan.org
Thu Feb 4 17:22:32 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb  4 17:22:12 2016 +0100| [462aafd99561fbd27ac8c460c3ada78a52665cc5] | committer: Geoffrey Métais

Udpate protocole only at root level

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
index 6718bf0..d243505 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -104,7 +104,7 @@ public class BaseBrowserAdapter extends  RecyclerView.Adapter<RecyclerView.ViewH
         vh.binding.setMedia(media);
         vh.binding.setType(TYPE_MEDIA);
         vh.binding.setHasContextMenu(true);
-        if (fragment instanceof NetworkBrowserFragment)
+        if (fragment instanceof NetworkBrowserFragment && fragment.isRootDirectory())
             vh.binding.setProtocole(getProtocol(media));
         vh.binding.executePendingBindings();
 



More information about the Android mailing list