Commit 9513302a authored by Alexandre Perraud's avatar Alexandre Perraud

Fix seekbar unlock issues when video was paused

parent 369ad9dc
......@@ -526,7 +526,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
@Override
protected void onResume() {
super.onResume();
/*
* Set listeners here to avoid NPE when activity is closing
*/
......@@ -1694,6 +1693,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
updateNavStatus();
if (!mService.getCurrentMediaWrapper().hasFlag(MediaWrapper.MEDIA_PAUSED))
mHandler.sendEmptyMessageDelayed(FADE_OUT, OVERLAY_TIMEOUT);
else {
mService.getCurrentMediaWrapper().removeFlags(MediaWrapper.MEDIA_PAUSED);
mWasPaused = false;
}
setESTracks();
}
......@@ -3014,8 +3017,14 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
title = itemTitle;
mTitle.setText(title);
if (mWasPaused)
if (mWasPaused) {
// XXX: Workaround to update the seekbar position
mForcedTime = savedTime;
setOverlayProgress();
mForcedTime = -1;
showOverlay(true);
}
}
private SubtitlesGetTask mSubtitlesGetTask = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment