Code-review changes
This commit is contained in:
parent
835476870b
commit
c46a0f7b2e
1 changed files with 6 additions and 6 deletions
|
@ -201,12 +201,12 @@ public final class BackgroundPlayer extends Service {
|
||||||
setupNotification(notRemoteView);
|
setupNotification(notRemoteView);
|
||||||
setupNotification(bigNotRemoteView);
|
setupNotification(bigNotRemoteView);
|
||||||
|
|
||||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, getString(R.string.notification_channel_id));
|
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, getString(R.string.notification_channel_id))
|
||||||
builder.setOngoing(true);
|
.setOngoing(true)
|
||||||
builder.setSmallIcon(R.drawable.ic_newpipe_triangle_white);
|
.setSmallIcon(R.drawable.ic_newpipe_triangle_white)
|
||||||
builder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
|
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||||
builder.setCustomContentView(notRemoteView);
|
.setCustomContentView(notRemoteView)
|
||||||
builder.setCustomBigContentView(bigNotRemoteView);
|
.setCustomBigContentView(bigNotRemoteView);
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
setLockScreenThumbnail(builder);
|
setLockScreenThumbnail(builder);
|
||||||
|
|
Loading…
Reference in a new issue