[Android] Show network protocole at root level only
Geoffrey Métais
git at videolan.org
Fri Dec 11 18:15:10 CET 2015
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 11 18:13:14 2015 +0100| [191266af5c503a174876cd1000ca019174d88775] | committer: Geoffrey Métais
Show network protocole at root level only
> https://code.videolan.org/videolan/vlc-android/commit/191266af5c503a174876cd1000ca019174d88775
---
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java | 2 ++
1 file changed, 2 insertions(+)
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 8a571ad..2ace1ec 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -295,6 +295,8 @@ public class BaseBrowserAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
}
}
protected String getProtocole(MediaWrapper media) {
+ if (!fragment.isRootDirectory() || !(fragment instanceof NetworkBrowserFragment))
+ return null;
if (media.getType() != MediaWrapper.TYPE_DIR)
return null;
String scheme = media.getUri().getScheme();
More information about the Android
mailing list