diff --git a/app/src/main/java/org/tasks/notifications/NotificationManager.kt b/app/src/main/java/org/tasks/notifications/NotificationManager.kt index 70c408673..1d604cff5 100644 --- a/app/src/main/java/org/tasks/notifications/NotificationManager.kt +++ b/app/src/main/java/org/tasks/notifications/NotificationManager.kt @@ -56,8 +56,10 @@ class NotificationManager @Inject constructor( @SuppressLint("CheckResult") suspend fun cancel(ids: Iterable) { for (id in ids) { - notificationManagerCompat.cancel(id.toInt()) - queue.remove(id) + throttle.run { + notificationManagerCompat.cancel(id.toInt()) + queue.remove(id) + } } notificationDao.deleteAll(ids.toList()) notifyTasks(emptyList(), alert = false, nonstop = false, fiveTimes = false)