mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Temporary removal of notification icon
This commit is contained in:
parent
58edb6ba9d
commit
b1fca633a6
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ public class PlayingNotification {
|
||||||
intent.setComponent(serviceName);
|
intent.setComponent(serviceName);
|
||||||
final PendingIntent deleteIntent = PendingIntent.getService(service, 0, intent, 0);
|
final PendingIntent deleteIntent = PendingIntent.getService(service, 0, intent, 0);
|
||||||
|
|
||||||
Bitmap bitmap = BitmapFactory.decodeResource(service.getResources(), R.drawable.default_album_art);
|
// Bitmap bitmap = BitmapFactory.decodeResource(service.getResources(), R.drawable.default_album_art);
|
||||||
NotificationCompat.Action playPauseAction = new NotificationCompat.Action(playButtonResId,
|
NotificationCompat.Action playPauseAction = new NotificationCompat.Action(playButtonResId,
|
||||||
service.getString(R.string.action_play_pause),
|
service.getString(R.string.action_play_pause),
|
||||||
retrievePlaybackAction(ACTION_TOGGLE));
|
retrievePlaybackAction(ACTION_TOGGLE));
|
||||||
|
|
@ -77,7 +77,7 @@ public class PlayingNotification {
|
||||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(service, NOTIFICATION_CHANNEL_ID)
|
NotificationCompat.Builder builder = new NotificationCompat.Builder(service, NOTIFICATION_CHANNEL_ID)
|
||||||
.setSmallIcon(R.drawable.ic_notification)
|
.setSmallIcon(R.drawable.ic_notification)
|
||||||
.setSubText(song.getAlbumName())
|
.setSubText(song.getAlbumName())
|
||||||
.setLargeIcon(bitmap)
|
// .setLargeIcon(bitmap)
|
||||||
.setContentIntent(clickIntent)
|
.setContentIntent(clickIntent)
|
||||||
.setDeleteIntent(deleteIntent)
|
.setDeleteIntent(deleteIntent)
|
||||||
.setContentTitle(song.getTitle())
|
.setContentTitle(song.getTitle())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue