mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Fix issue causing multiple notifications to be dismissed at once (#540)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user