Remove entry notifications after killing app (by swap)

This commit is contained in:
J-Jamet
2019-10-25 10:08:39 +02:00
parent f774298587
commit ef7387f2f3

View File

@@ -32,6 +32,12 @@ abstract class EntryNotificationService : NotificationService() {
task.interrupt()
}
override fun onTaskRemoved(rootIntent: Intent?) {
notificationManager?.cancel(notificationId)
super.onTaskRemoved(rootIntent)
}
override fun onDestroy() {
unregisterReceiver(lockBroadcastReceiver)