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