From 1f88238e785b3cdec94d045385e7f2ba1c46f361 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Thu, 1 Sep 2022 15:25:03 +0200 Subject: [PATCH] Send NotificationDismissReceiver intent in onTaskRemoved --- .../kotlin/it/vfsfitvnm/vimusic/service/PlayerService.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/service/PlayerService.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/service/PlayerService.kt index 3544ec2..d030503 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/service/PlayerService.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/service/PlayerService.kt @@ -220,11 +220,7 @@ class PlayerService : InvincibleService(), Player.Listener, PlaybackStatsListene override fun onTaskRemoved(rootIntent: Intent?) { if (!player.shouldBePlaying) { - if (isPersistentQueueEnabled) { - broadCastPendingIntent().send() - } else { - stopSelf() - } + broadCastPendingIntent().send() } super.onTaskRemoved(rootIntent) }