[Android] Show overlay only on DPAD DOWN press
Geoffrey Métais
git at videolan.org
Wed Apr 20 11:29:21 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 20 11:26:34 2016 +0200| [d054c934bee4925eb2b254b89ce34fa3760b8c86] | committer: Geoffrey Métais
Show overlay only on DPAD DOWN press
> https://code.videolan.org/videolan/vlc-android/commit/d054c934bee4925eb2b254b89ce34fa3760b8c86
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 faed81b..b52bee5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1116,7 +1116,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
}
return true;
}
- showOverlayTimeout(OVERLAY_TIMEOUT);
+ if (mShowing || keyCode == KeyEvent.KEYCODE_DPAD_DOWN)
+ showOverlayTimeout(OVERLAY_TIMEOUT);
switch (keyCode) {
case KeyEvent.KEYCODE_F:
case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:
More information about the Android
mailing list