mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Added Streaks info for numeric habits
This commit is contained in:
@@ -52,10 +52,7 @@ class ShowHabitView(context: Context) : FrameLayout(context) {
|
||||
binding.frequencyCard.setState(data.frequency)
|
||||
binding.historyCard.setState(data.history)
|
||||
binding.barCard.setState(data.bar)
|
||||
if (data.isNumerical) {
|
||||
binding.overviewCard.visibility = GONE
|
||||
binding.streakCard.visibility = GONE
|
||||
} else {
|
||||
if (!data.isNumerical) {
|
||||
binding.targetCard.visibility = GONE
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user