|
|
@@ -39,7 +39,7 @@ class NowPlayingNotification(
|
|
39
|
39
|
|
|
40
|
40
|
mediaStyle = androidx.media.app.NotificationCompat.DecoratedMediaCustomViewStyle().also {
|
|
41
|
41
|
it.setMediaSession(m.sessionToken)
|
|
42
|
|
- it.setShowActionsInCompactView(0) // index 0 = show actions 0 and 1 (show action #0 (play/pause))
|
|
|
42
|
+ it.setShowActionsInCompactView(0, 1) // index 0 = show actions 0 and 1 (show action #0 (play/pause))
|
|
43
|
43
|
it.setCancelButtonIntent(deleteIntent)
|
|
44
|
44
|
}
|
|
45
|
45
|
builder.setStyle(mediaStyle)
|
|
|
@@ -83,7 +83,7 @@ class NowPlayingNotification(
|
|
83
|
83
|
val intent2 = Intent(c, RadioService::class.java)
|
|
84
|
84
|
intent2.putExtra("action", Actions.KILL.name)
|
|
85
|
85
|
val pendingButtonIntent = PendingIntent.getService(c, 2, intent2, PendingIntent.FLAG_UPDATE_CURRENT)
|
|
86
|
|
- val stopAction = NotificationCompat.Action.Builder(R.drawable.ic_stop,"Stop", pendingButtonIntent).build()
|
|
|
86
|
+ val stopAction = NotificationCompat.Action.Builder(R.drawable.ic_close,"Stop", pendingButtonIntent).build()
|
|
87
|
87
|
builder.addAction(stopAction)
|
|
88
|
88
|
|
|
89
|
89
|
if (isRinging) {
|