remove album name from notification subtext

This commit is contained in:
dkanada 2021-05-16 12:06:25 +09:00
commit f283886d07

View file

@ -83,12 +83,11 @@ public class PlayingNotificationNougat extends PlayingNotification {
retrievePlaybackAction(ACTION_SKIP)); retrievePlaybackAction(ACTION_SKIP));
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.albumName)
.setLargeIcon(bitmap) .setLargeIcon(bitmap)
.setContentIntent(clickIntent) .setContentIntent(clickIntent)
.setDeleteIntent(deleteIntent) .setDeleteIntent(deleteIntent)
.setContentTitle(song.title) .setContentTitle(song.title)
.setContentText(song.artistName) .setContentText(song.albumName)
.setOngoing(isPlaying) .setOngoing(isPlaying)
.setShowWhen(false) .setShowWhen(false)
.addAction(previousAction) .addAction(previousAction)