Fix issue causing multiple notifications to be dismissed at once (#540)
This commit is contained in:
parent
997ebfc28a
commit
f9437d61b0
@ -56,9 +56,6 @@ class AndroidNotificationTray
|
|||||||
val manager = NotificationManagerCompat.from(context)
|
val manager = NotificationManagerCompat.from(context)
|
||||||
manager.cancel(id)
|
manager.cancel(id)
|
||||||
active.remove(id)
|
active.remove(id)
|
||||||
|
|
||||||
// Clear the group summary notification
|
|
||||||
if (active.isEmpty()) manager.cancelAll()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun showNotification(habit: Habit,
|
override fun showNotification(habit: Habit,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user