[Android] Show video player overlay on pause

Geoffrey Métais git at videolan.org
Tue Jun 13 16:42:00 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jun 13 16:41:01 2017 +0200| [5b30310091f4ef6fa6a6179db944fea77ab89d6d] | committer: Geoffrey Métais

Show video player overlay on pause

And hide it on play

Close #297

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 ++
 1 file changed, 2 insertions(+)

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 ede10384e..7a24103f9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2650,8 +2650,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             return;
 
         if (mService.isPlaying()) {
+            showOverlayTimeout(OVERLAY_INFINITE);
             pause();
         } else {
+            hideOverlay(true);
             play();
         }
     }



More information about the Android mailing list