Don't show reminders from archived habits (#639)

pull/630/head
Kristian Tashkov 5 years ago committed by GitHub
parent 69f11c9d4e
commit 07f8583c3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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