[Android] Do not show overlay on back button press

Geoffrey Métais git at videolan.org
Wed Apr 22 11:50:00 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 22 11:48:09 2015 +0200| [64523d9e1e0e1831d1fc4f47f85e2ba5f6991cc1] | committer: Geoffrey Métais

Do not show overlay on back button press

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=64523d9e1e0e1831d1fc4f47f85e2ba5f6991cc1
---

 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 2eb6158..dea2984 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -944,7 +944,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
 
     @Override
     public boolean onKeyDown(int keyCode, KeyEvent event) {
-        showOverlayTimeout(OVERLAY_TIMEOUT);
+        if (keyCode != KeyEvent.KEYCODE_BACK)
+            showOverlayTimeout(OVERLAY_TIMEOUT);
         switch (keyCode) {
         case KeyEvent.KEYCODE_F:
         case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:



More information about the Android mailing list