mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Ignoring isCompleted for AT_MOST habits
This commit is contained in:
@@ -24,6 +24,7 @@ import org.isoron.uhabits.core.commands.CommandRunner
|
||||
import org.isoron.uhabits.core.commands.CreateRepetitionCommand
|
||||
import org.isoron.uhabits.core.commands.DeleteHabitsCommand
|
||||
import org.isoron.uhabits.core.models.Habit
|
||||
import org.isoron.uhabits.core.models.NumericalHabitType
|
||||
import org.isoron.uhabits.core.models.Timestamp
|
||||
import org.isoron.uhabits.core.preferences.Preferences
|
||||
import org.isoron.uhabits.core.tasks.Task
|
||||
@@ -120,7 +121,7 @@ class NotificationTray @Inject constructor(
|
||||
|
||||
override fun onPostExecute() {
|
||||
systemTray.log("Showing notification for habit=" + habit.id)
|
||||
if (isCompleted) {
|
||||
if (isCompleted && habit.targetType != NumericalHabitType.AT_MOST) {
|
||||
systemTray.log(
|
||||
String.format(
|
||||
Locale.US,
|
||||
|
||||
Reference in New Issue
Block a user