Skip to content

Commit

Permalink
Added Streaks info for numeric habits
Browse files Browse the repository at this point in the history
  • Loading branch information
teckwarz authored and iSoron committed Feb 9, 2025
1 parent 13ecc2a commit 4a7d7ef
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ class ShowHabitView(context: Context) : FrameLayout(context) {
binding.frequencyCard.setState(data.frequency)
binding.historyCard.setState(data.history)
binding.barCard.setState(data.bar)
if (!data.isNumerical) {
if (data.isNumerical) {
binding.overviewCard.visibility = GONE
} else {
binding.targetCard.visibility = GONE
}
}
Expand Down

0 comments on commit 4a7d7ef

Please sign in to comment.