From 7c7129f9a1d0700de8cc15f271eb5697b7bf3da6 Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Tue, 27 Dec 2016 13:31:34 +0100 Subject: [PATCH] Notifications: Set customs views in builder --- .../java/org/schabi/newpipe/player/BackgroundPlayer.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java b/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java index 8ec525e77..8cc8871c6 100644 --- a/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java @@ -339,13 +339,9 @@ public class BackgroundPlayer extends Service /*implements MediaPlayer.OnPrepare //Make notification appear on lockscreen noteBuilder.setVisibility(Notification.VISIBILITY_PUBLIC); - + noteBuilder.setCustomContentView(view); + noteBuilder.setCustomBigContentView(expandedView); note = noteBuilder.build(); - note.contentView = view; - - if (android.os.Build.VERSION.SDK_INT > 16) { - note.bigContentView = expandedView; - } return note; }