mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-06 04:47:55 +00:00
Notifications: Set customs views in builder
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user