Commit 5a86e7f9 authored by Geoffrey Métais's avatar Geoffrey Métais

API checks for key bindings

parent 0ed63449
...@@ -1208,7 +1208,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C ...@@ -1208,7 +1208,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
case KeyEvent.KEYCODE_DPAD_UP: case KeyEvent.KEYCODE_DPAD_UP:
if (mIsNavMenu) if (mIsNavMenu)
return navigateDvdMenu(keyCode); return navigateDvdMenu(keyCode);
else if (event.isCtrlPressed()) { else if (AndroidUtil.isHoneycombOrLater && event.isCtrlPressed()) {
volumeUp(); volumeUp();
return true; return true;
} else if (!mShowing) { } else if (!mShowing) {
...@@ -1221,7 +1221,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C ...@@ -1221,7 +1221,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
case KeyEvent.KEYCODE_DPAD_DOWN: case KeyEvent.KEYCODE_DPAD_DOWN:
if (mIsNavMenu) if (mIsNavMenu)
return navigateDvdMenu(keyCode); return navigateDvdMenu(keyCode);
else if (event.isCtrlPressed()) { else if (AndroidUtil.isHoneycombOrLater && event.isCtrlPressed()) {
volumeDown(); volumeDown();
return true; return true;
} else if (!mShowing && mFov != 0f) { } else if (!mShowing && mFov != 0f) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment