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

Loading…
Cancel
Save