This commit is contained in:
vfsfitvnm
2022-07-22 21:28:59 +02:00
parent 6474b52490
commit 6a8fdb7c11
4 changed files with 15 additions and 6 deletions

View File

@@ -417,7 +417,11 @@ class PlayerService : InvincibleService(), Player.Listener, PlaybackStatsListene
.setSmallIcon(player.playerError?.let { R.drawable.alert_circle }
?: R.drawable.app_icon)
.setOngoing(false)
.setContentIntent(activityPendingIntent<MainActivity>())
.setContentIntent(activityPendingIntent<MainActivity>(
flags = PendingIntent.FLAG_UPDATE_CURRENT
) {
putExtra("expandPlayerBottomSheet", true)
})
.setDeleteIntent(broadCastPendingIntent<NotificationDismissReceiver>())
.setVisibility(Notification.VISIBILITY_PUBLIC)
.setCategory(NotificationCompat.CATEGORY_TRANSPORT)