[Android] Fix dots menu click in browsers
Geoffrey Métais
git at videolan.org
Mon Sep 14 10:01:37 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Sep 14 10:01:11 2015 +0200| [8e6ce317280cfad5d3b5f917cf47ba6715816dd3] | committer: Geoffrey Métais
Fix dots menu click in browsers
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=8e6ce317280cfad5d3b5f917cf47ba6715816dd3
---
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 2db7eb8..7c83f31 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -305,7 +305,7 @@ public class BaseBrowserAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
}
public void onMoreClick(View v){
- final MediaViewHolder holder = (MediaViewHolder) v.getTag(R.id.layout_item);
+ final MediaViewHolder holder = (MediaViewHolder) ((ViewGroup)v.getParent()).getTag(R.id.layout_item);
fragment.onPopupMenu(holder.more, holder.getAdapterPosition());
}
}
More information about the Android
mailing list