Remove habits from active list when should not be shown

pull/1509/head
Felix Wiemuth 3 years ago
parent 9f5da7b4fe
commit 33100df633

@ -122,6 +122,7 @@ class NotificationTray @Inject constructor(
habit.id habit.id
) )
) )
active.remove(habit)
return return
} }
if (!habit.hasReminder()) { if (!habit.hasReminder()) {
@ -132,6 +133,7 @@ class NotificationTray @Inject constructor(
habit.id habit.id
) )
) )
active.remove(habit)
return return
} }
if (habit.isArchived) { if (habit.isArchived) {
@ -142,6 +144,7 @@ class NotificationTray @Inject constructor(
habit.id habit.id
) )
) )
active.remove(habit)
return return
} }
if (!shouldShowReminderToday()) { if (!shouldShowReminderToday()) {
@ -152,6 +155,7 @@ class NotificationTray @Inject constructor(
habit.id habit.id
) )
) )
active.remove(habit)
return return
} }
systemTray.showNotification( systemTray.showNotification(

Loading…
Cancel
Save