[Android] Prevent conflict with remote key in video player
Geoffrey Métais
git at videolan.org
Fri Jul 17 16:36:34 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jul 17 16:35:48 2015 +0200| [e1ed7a69c6c1c6eb99647a94d4bbcfef3e94a837] | committer: Geoffrey Métais
Prevent conflict with remote key in video player
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=e1ed7a69c6c1c6eb99647a94d4bbcfef3e94a837
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 ++
1 file changed, 2 insertions(+)
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 6673a4b..c7a6e67 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -968,6 +968,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
case KeyEvent.KEYCODE_SPACE:
if (mIsNavMenu)
return navigateDvdMenu(keyCode);
+ else if (keyCode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE) //prevent conflict with remote control
+ return super.onKeyDown(keyCode, event);
else
doPlayPause();
return true;
More information about the Android
mailing list