From 87bdcf685074ec85d86b9a5448e8846bd0e147b8 Mon Sep 17 00:00:00 2001 From: Karthikeyan Date: Thu, 4 Sep 2025 19:34:12 +0530 Subject: [PATCH] Fix #2210: Fix undoing the checkmark bug. --- .../uhabits/activities/habits/list/views/NumberButtonView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/NumberButtonView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/NumberButtonView.kt index 24b36c186..4a184aee2 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/NumberButtonView.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/NumberButtonView.kt @@ -174,11 +174,11 @@ class NumberButtonView( fun draw(canvas: Canvas) { val activeColor = when { value < 0.0 -> lowContrast + (targetType == AT_LEAST) && ((value == 0.0) && (threshold != 0.0)) -> lowContrast (targetType == AT_LEAST) && (value >= threshold) -> color (targetType == AT_MOST) && (value <= threshold) -> color else -> mediumContrast } - val label: String val typeface: Typeface val textSize: Float