1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 17:10:33 +00:00

Notifications: Set customs views in builder

This commit is contained in:
Coffeemakr 2016-12-27 13:31:34 +01:00
parent 05cbc7891d
commit 7c7129f9a1

View File

@ -339,13 +339,9 @@ public class BackgroundPlayer extends Service /*implements MediaPlayer.OnPrepare
//Make notification appear on lockscreen //Make notification appear on lockscreen
noteBuilder.setVisibility(Notification.VISIBILITY_PUBLIC); noteBuilder.setVisibility(Notification.VISIBILITY_PUBLIC);
noteBuilder.setCustomContentView(view);
noteBuilder.setCustomBigContentView(expandedView);
note = noteBuilder.build(); note = noteBuilder.build();
note.contentView = view;
if (android.os.Build.VERSION.SDK_INT > 16) {
note.bigContentView = expandedView;
}
return note; return note;
} }