Skip to content

Commit 4a7d7ef

Browse files
teckwarziSoron
authored andcommitted
Added Streaks info for numeric habits
1 parent 13ecc2a commit 4a7d7ef

File tree

1 file changed

+3
-1
lines changed
  • uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/show

1 file changed

+3
-1
lines changed

uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/show/ShowHabitView.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ class ShowHabitView(context: Context) : FrameLayout(context) {
5252
binding.frequencyCard.setState(data.frequency)
5353
binding.historyCard.setState(data.history)
5454
binding.barCard.setState(data.bar)
55-
if (!data.isNumerical) {
55+
if (data.isNumerical) {
56+
binding.overviewCard.visibility = GONE
57+
} else {
5658
binding.targetCard.visibility = GONE
5759
}
5860
}

0 commit comments

Comments
 (0)