mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-02 15:33:36 +00:00
Temporary removal of notification icon
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user