[Android] No context menu in OTG devices
Geoffrey Métais
git at videolan.org
Wed Aug 1 10:30:02 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jul 31 18:05:39 2018 +0200| [909129599f2a323b322fff14052ebbe52fc52cc2] | committer: Geoffrey Métais
No context menu in OTG devices
> https://code.videolan.org/videolan/vlc-android/commit/909129599f2a323b322fff14052ebbe52fc52cc2
---
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 674b04022..b12076f64 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -120,7 +120,7 @@ public class BaseBrowserAdapter extends DiffUtilAdapter<MediaLibraryItem, BaseBr
private void onBindMediaViewHolder(final MediaViewHolder vh, int position) {
final MediaWrapper media = (MediaWrapper) getItem(position);
vh.binding.setItem(media);
- vh.binding.setHasContextMenu(!mNetworkRoot || mFavorites);
+ vh.binding.setHasContextMenu((!mNetworkRoot || mFavorites) && !"content".equals(media.getUri().getScheme()));
if (mNetworkRoot) vh.binding.setProtocol(getProtocol(media));
vh.binding.setCover(getIcon(media, mSpecialIcons));
vh.selectView(media.hasStateFlags(FLAG_SELECTED));
More information about the Android
mailing list