Using compat method

This commit is contained in:
ByteHamster 2018-04-09 22:30:43 +02:00
parent d757abedbc
commit b5a8fe0a1b
1 changed files with 1 additions and 1 deletions

View File

@ -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();