[Android] No video playlist on Android 2.3

Geoffrey Métais git at videolan.org
Wed Nov 16 10:50:28 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov 15 18:21:53 2016 +0100| [6e509de68a5d91ba43fed741c092e3956a0cc6bf] | committer: Geoffrey Métais

No video playlist on Android 2.3

> https://code.videolan.org/videolan/vlc-android/commit/6e509de68a5d91ba43fed741c092e3956a0cc6bf
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java | 6 +++++-
 1 file changed, 5 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 53cb029..6bc8a96 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -553,7 +553,11 @@ public class VideoGridFragment extends MediaBrowserFragment implements MediaUpda
             stopActionMode();
             return false;
         }
-        menu.findItem(R.id.action_video_info).setVisible(mVideoAdapter.getSelectedPositions().size() == 1);
+        boolean honeComb = AndroidUtil.isHoneycombOrLater();
+        int count = mVideoAdapter.getSelectedPositions().size();
+        menu.findItem(R.id.action_video_info).setVisible(count == 1);
+        menu.findItem(R.id.action_video_play).setVisible(honeComb || count == 1);
+        menu.findItem(R.id.action_video_append).setVisible(honeComb);
         return true;
     }
 



More information about the Android mailing list