|
|
|
@ -21,6 +21,7 @@ package org.isoron.uhabits.core.ui.screens.habits.show.views
|
|
|
|
|
|
|
|
|
|
import org.isoron.uhabits.core.models.Frequency
|
|
|
|
|
import org.isoron.uhabits.core.models.Habit
|
|
|
|
|
import org.isoron.uhabits.core.models.NumericalHabitType
|
|
|
|
|
import org.isoron.uhabits.core.models.PaletteColor
|
|
|
|
|
import org.isoron.uhabits.core.models.Reminder
|
|
|
|
|
import org.isoron.uhabits.core.ui.views.Theme
|
|
|
|
@ -31,8 +32,9 @@ data class SubtitleCardState(
|
|
|
|
|
val isNumerical: Boolean,
|
|
|
|
|
val question: String,
|
|
|
|
|
val reminder: Reminder?,
|
|
|
|
|
val targetValue: Double,
|
|
|
|
|
val unit: String,
|
|
|
|
|
val targetValue: Double = 0.0,
|
|
|
|
|
val targetType: NumericalHabitType = NumericalHabitType.AT_LEAST,
|
|
|
|
|
val unit: String = "",
|
|
|
|
|
val theme: Theme,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -48,6 +50,7 @@ class SubtitleCardPresenter {
|
|
|
|
|
question = habit.question,
|
|
|
|
|
reminder = habit.reminder,
|
|
|
|
|
targetValue = habit.targetValue,
|
|
|
|
|
targetType = habit.targetType,
|
|
|
|
|
unit = habit.unit,
|
|
|
|
|
theme = theme,
|
|
|
|
|
)
|
|
|
|
|