[Android] Hide video group queuing for Android 2.x

Geoffrey Métais git at videolan.org
Fri Apr 1 18:08:25 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr  1 17:13:42 2016 +0200| [8f958de60e1c432e7cae7e3af8fca2d41e97314f] | committer: Geoffrey Métais

Hide video group queuing for Android 2.x

> https://code.videolan.org/videolan/vlc-android/commit/8f958de60e1c432e7cae7e3af8fca2d41e97314f
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index 0e4fed0..93375b1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -342,7 +342,10 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
             return;
         MenuInflater inflater = getActivity().getMenuInflater();
         inflater.inflate(media instanceof MediaGroup ? R.menu.video_group_contextual : R.menu.video_list, menu);
-        if (!(media instanceof MediaGroup))
+        if (media instanceof MediaGroup && !AndroidUtil.isHoneycombOrLater()) {
+            menu.findItem(R.id.video_list_append).setVisible(false);
+            menu.findItem(R.id.video_group_play).setVisible(false);
+        } else
             setContextMenuItems(menu, media);
     }
 



More information about the Android mailing list