Send NotificationDismissReceiver intent in onTaskRemoved
This commit is contained in:
@@ -220,11 +220,7 @@ class PlayerService : InvincibleService(), Player.Listener, PlaybackStatsListene
|
|||||||
|
|
||||||
override fun onTaskRemoved(rootIntent: Intent?) {
|
override fun onTaskRemoved(rootIntent: Intent?) {
|
||||||
if (!player.shouldBePlaying) {
|
if (!player.shouldBePlaying) {
|
||||||
if (isPersistentQueueEnabled) {
|
|
||||||
broadCastPendingIntent<NotificationDismissReceiver>().send()
|
broadCastPendingIntent<NotificationDismissReceiver>().send()
|
||||||
} else {
|
|
||||||
stopSelf()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
super.onTaskRemoved(rootIntent)
|
super.onTaskRemoved(rootIntent)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user