[Android] Show overlay for paused media playback resume

Geoffrey Métais git at videolan.org
Sun Jun 5 11:54:55 CEST 2016


vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Sat Jun  4 15:48:00 2016 +0200| [9f39ba54ab2d56c0c9b7bd42e459d2eb554409d0] | committer: Geoffrey Métais

Show overlay for paused media playback resume

(cherry picked from commit 29942f36d2dd37986637ad1d44647aa991aef2fe)

> https://code.videolan.org/videolan/vlc-android/commit/9f39ba54ab2d56c0c9b7bd42e459d2eb554409d0
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 6 +++++-
 1 file changed, 5 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 f01aa67..0fcaefd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1661,7 +1661,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         stopLoading();
         updateOverlayPausePlay();
         updateNavStatus();
-        mHandler.sendEmptyMessageDelayed(FADE_OUT, OVERLAY_TIMEOUT);
+        if (!mService.getCurrentMediaWrapper().hasFlag(MediaWrapper.MEDIA_PAUSED))
+            mHandler.sendEmptyMessageDelayed(FADE_OUT, OVERLAY_TIMEOUT);
         setESTracks();
     }
 
@@ -3017,6 +3018,9 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         if (itemTitle != null)
             title = itemTitle;
         mTitle.setText(title);
+
+        if (mWasPaused)
+            showOverlay(true);
     }
 
     public void getSubtitles() {



More information about the Android mailing list