[Android] Fix Overlay show on delay exit

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


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

Fix Overlay show on delay exit

> https://code.videolan.org/videolan/vlc-android/commit/5c50c3237588705306ade4627b0ac95d2e2f3b30
---

 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 8f931aa..191828e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1887,8 +1887,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