mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-16 22:00:28 +01:00
roleback wrong fix
This commit is contained in:
parent
11e8e38f2c
commit
7f88c3d0a9
@ -180,8 +180,7 @@ public final class BackgroundPlayer extends Service {
|
|||||||
.setSmallIcon(R.drawable.ic_newpipe_triangle_white)
|
.setSmallIcon(R.drawable.ic_newpipe_triangle_white)
|
||||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||||
.setCustomContentView(notRemoteView)
|
.setCustomContentView(notRemoteView)
|
||||||
.setCustomBigContentView(bigNotRemoteView)
|
.setCustomBigContentView(bigNotRemoteView);
|
||||||
.setContentIntent(NavigationHelper.getServicePlayerControlPendingIntent(this, BackgroundPlayerActivity.class));
|
|
||||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN) builder.setPriority(NotificationCompat.PRIORITY_MAX);
|
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN) builder.setPriority(NotificationCompat.PRIORITY_MAX);
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
@ -454,6 +453,7 @@ public final class BackgroundPlayer extends Service {
|
|||||||
super.setupBroadcastReceiver(intentFilter);
|
super.setupBroadcastReceiver(intentFilter);
|
||||||
intentFilter.addAction(ACTION_CLOSE);
|
intentFilter.addAction(ACTION_CLOSE);
|
||||||
intentFilter.addAction(ACTION_PLAY_PAUSE);
|
intentFilter.addAction(ACTION_PLAY_PAUSE);
|
||||||
|
intentFilter.addAction(ACTION_OPEN_CONTROLS);
|
||||||
intentFilter.addAction(ACTION_REPEAT);
|
intentFilter.addAction(ACTION_REPEAT);
|
||||||
intentFilter.addAction(ACTION_PLAY_PREVIOUS);
|
intentFilter.addAction(ACTION_PLAY_PREVIOUS);
|
||||||
intentFilter.addAction(ACTION_PLAY_NEXT);
|
intentFilter.addAction(ACTION_PLAY_NEXT);
|
||||||
@ -478,6 +478,9 @@ public final class BackgroundPlayer extends Service {
|
|||||||
case ACTION_PLAY_PAUSE:
|
case ACTION_PLAY_PAUSE:
|
||||||
onVideoPlayPause();
|
onVideoPlayPause();
|
||||||
break;
|
break;
|
||||||
|
case ACTION_OPEN_CONTROLS:
|
||||||
|
NavigationHelper.openBackgroundPlayerControl(getApplicationContext());
|
||||||
|
break;
|
||||||
case ACTION_REPEAT:
|
case ACTION_REPEAT:
|
||||||
onRepeatClicked();
|
onRepeatClicked();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user