Don't show reminders from archived habits

pull/639/head
KristianTashkov 5 years ago
parent 1ffc079042
commit 23e3ba1fc6

@ -194,18 +194,27 @@ public class NotificationTray
return; return;
} }
if (!shouldShowReminderToday()) { if (!habit.hasReminder()) {
systemTray.log(String.format( systemTray.log(String.format(
Locale.US, Locale.US,
"Habit %d not supposed to run today. Skipping.", "Habit %d does not have a reminder. Skipping.",
habit.id)); habit.id));
return; return;
} }
if (!habit.hasReminder()) { if (habit.isArchived())
{
systemTray.log(String.format( systemTray.log(String.format(
Locale.US, Locale.US,
"Habit %d does not have a reminder. Skipping.", "Habit %d is archived. Skipping.",
habit.id));
return;
}
if (!shouldShowReminderToday()) {
systemTray.log(String.format(
Locale.US,
"Habit %d not supposed to run today. Skipping.",
habit.id)); habit.id));
return; return;
} }

Loading…
Cancel
Save