Using compat method
This commit is contained in:
parent
d757abedbc
commit
b5a8fe0a1b
|
@ -297,7 +297,7 @@ public class VideoplayerActivity extends MediaplayerActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onReloadNotification(int notificationCode) {
|
protected void onReloadNotification(int notificationCode) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && isInPictureInPictureMode()) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && PictureInPictureUtil.isInPictureInPictureMode(this)) {
|
||||||
if (notificationCode == PlaybackService.EXTRA_CODE_AUDIO
|
if (notificationCode == PlaybackService.EXTRA_CODE_AUDIO
|
||||||
|| notificationCode == PlaybackService.EXTRA_CODE_CAST) {
|
|| notificationCode == PlaybackService.EXTRA_CODE_CAST) {
|
||||||
finish();
|
finish();
|
||||||
|
|
Loading…
Reference in New Issue