Commit 98ff80c4 authored by Geoffrey Métais's avatar Geoffrey Métais

Change video from recommendation cards

parent 7df392a6
......@@ -507,6 +507,18 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
setRequestedOrientation(mScreenOrientationLock);
}
@Override
protected void onNewIntent(Intent intent) {
setIntent(intent);
if (mPlaybackStarted) {
Uri uri = intent.hasExtra(PLAY_EXTRA_ITEM_LOCATION) ? (Uri) intent.getExtras().getParcelable(PLAY_EXTRA_ITEM_LOCATION) : intent.getData();
if (uri == null || uri.equals(mUri))
return;
stopPlayback();
startPlayback();
}
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
protected void onPause() {
......
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