Fixed strange behavior when re-launching from PiP
This commit is contained in:
parent
10f50ab264
commit
2831ec69d9
@ -3,6 +3,7 @@ package de.danoeh.antennapod.config;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
|
||||||
|
import android.os.Build;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.activity.AudioplayerActivity;
|
import de.danoeh.antennapod.activity.AudioplayerActivity;
|
||||||
import de.danoeh.antennapod.activity.CastplayerActivity;
|
import de.danoeh.antennapod.activity.CastplayerActivity;
|
||||||
@ -18,7 +19,11 @@ public class PlaybackServiceCallbacksImpl implements PlaybackServiceCallbacks {
|
|||||||
return new Intent(context, CastplayerActivity.class);
|
return new Intent(context, CastplayerActivity.class);
|
||||||
}
|
}
|
||||||
if (mediaType == MediaType.VIDEO) {
|
if (mediaType == MediaType.VIDEO) {
|
||||||
return new Intent(context, VideoplayerActivity.class);
|
Intent i = new Intent(context, VideoplayerActivity.class);
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
|
i.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
|
||||||
|
}
|
||||||
|
return i;
|
||||||
} else {
|
} else {
|
||||||
return new Intent(context, AudioplayerActivity.class);
|
return new Intent(context, AudioplayerActivity.class);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user