[Android] API checks for key bindings

Geoffrey Métais git at videolan.org
Thu Apr 26 14:00:04 CEST 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr 26 13:59:27 2018 +0200| [5a86e7f9c17657bf13a082544d824f9fc755012b] | committer: Geoffrey Métais

API checks for key bindings

> https://code.videolan.org/videolan/vlc-android/commit/5a86e7f9c17657bf13a082544d824f9fc755012b
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 4849fa4d2..680846048 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1208,7 +1208,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             case KeyEvent.KEYCODE_DPAD_UP:
                 if (mIsNavMenu)
                     return navigateDvdMenu(keyCode);
-                else if (event.isCtrlPressed()) {
+                else if (AndroidUtil.isHoneycombOrLater && event.isCtrlPressed()) {
                     volumeUp();
                     return true;
                 } else if (!mShowing) {
@@ -1221,7 +1221,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             case KeyEvent.KEYCODE_DPAD_DOWN:
                 if (mIsNavMenu)
                     return navigateDvdMenu(keyCode);
-                else if (event.isCtrlPressed()) {
+                else if (AndroidUtil.isHoneycombOrLater && event.isCtrlPressed()) {
                     volumeDown();
                     return true;
                 } else if (!mShowing && mFov != 0f) {



More information about the Android mailing list