Commit b84fdbd3 authored by Geoffrey Métais's avatar Geoffrey Métais

Update video title if needed

parent 3b5cd77c
......@@ -1788,13 +1788,16 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
stopLoading();
updateOverlayPausePlay();
updateNavStatus();
if (!mService.getCurrentMediaWrapper().hasFlag(MediaWrapper.MEDIA_PAUSED))
final MediaWrapper mw = mService.getCurrentMediaWrapper();
if (!mw.hasFlag(MediaWrapper.MEDIA_PAUSED))
mHandler.sendEmptyMessageDelayed(FADE_OUT, OVERLAY_TIMEOUT);
else {
mService.getCurrentMediaWrapper().removeFlags(MediaWrapper.MEDIA_PAUSED);
mw.removeFlags(MediaWrapper.MEDIA_PAUSED);
mWasPaused = false;
}
setESTracks();
if (mTitle != null && mTitle.length() == 0)
mTitle.setText(mw.getTitle());
}
private void endReached() {
......
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