mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Don't show reminders from archived habits (#639)
This commit is contained in:
@@ -194,14 +194,6 @@ public class NotificationTray
|
||||
return;
|
||||
}
|
||||
|
||||
if (!shouldShowReminderToday()) {
|
||||
systemTray.log(String.format(
|
||||
Locale.US,
|
||||
"Habit %d not supposed to run today. Skipping.",
|
||||
habit.id));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!habit.hasReminder()) {
|
||||
systemTray.log(String.format(
|
||||
Locale.US,
|
||||
@@ -210,6 +202,23 @@ public class NotificationTray
|
||||
return;
|
||||
}
|
||||
|
||||
if (habit.isArchived())
|
||||
{
|
||||
systemTray.log(String.format(
|
||||
Locale.US,
|
||||
"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));
|
||||
return;
|
||||
}
|
||||
|
||||
systemTray.showNotification(habit, getNotificationId(habit), timestamp,
|
||||
reminderTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user