[Android] Fix Overlay show on delay exit

Geoffrey Métais git at videolan.org
Wed Aug 3 18:15:07 CEST 2016


vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Aug  2 11:36:56 2016 +0200| [0709b277c1941a77e659d454536192a57175d46b] | committer: Geoffrey Métais

Fix Overlay show on delay exit

(cherry picked from commit 5c50c3237588705306ade4627b0ac95d2e2f3b30)

> https://code.videolan.org/videolan/vlc-android/commit/0709b277c1941a77e659d454536192a57175d46b
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 5 +++--
 1 file changed, 3 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 dc217d4..48a913d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1908,8 +1908,9 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
     public boolean onTouchEvent(MotionEvent event) {
         if (mService == null)
             return false;
-        if (mPlaybackSetting != DelayState.OFF){
-            endPlaybackSetting();
+        if (mPlaybackSetting != DelayState.OFF) {
+            if (event.getAction() == MotionEvent.ACTION_UP)
+                endPlaybackSetting();
             return true;
         } else if(mPlaylist.getVisibility() == View.VISIBLE) {
             togglePlaylist();



More information about the Android mailing list