[Android] No double tap action when locked

Geoffrey Métais git at videolan.org
Thu Feb 19 17:10:57 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 19 17:09:21 2015 +0100| [f024a8a7bc96870713f9d4f2a63883d0eb972544] | committer: Geoffrey Métais

No double tap action when locked

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

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java     |    7 +++++--
 1 file changed, 5 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 6eb0b79..b68d20a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1132,8 +1132,11 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
 
     @Override
     public boolean onDoubleTap(MotionEvent e) {
-        doPlayPause();
-        return true;
+        if (!mIsLocked) {
+            doPlayPause();
+            return true;
+        }
+        return false;
     }
 
     @Override



More information about the Android mailing list