[Android] Show overlay for paused media playback resume
Geoffrey Métais
git at videolan.org
Sat Jun 4 16:06:47 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Sat Jun 4 15:48:00 2016 +0200| [29942f36d2dd37986637ad1d44647aa991aef2fe] | committer: Geoffrey Métais
Show overlay for paused media playback resume
> https://code.videolan.org/videolan/vlc-android/commit/29942f36d2dd37986637ad1d44647aa991aef2fe
---
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