add increment to Edit UI and Habit

This commit is contained in:
Peketr
2024-03-18 14:42:31 +01:00
parent 1d05b9ed10
commit ca428a7dd5
4 changed files with 84 additions and 1 deletions

View File

@@ -39,7 +39,8 @@ data class Habit(
val computedEntries: EntryList,
val originalEntries: EntryList,
val scores: ScoreList,
val streaks: StreakList
val streaks: StreakList,
var increment: Double = 0.0
) {
init {
if (uuid == null) this.uuid = UUID.randomUUID().toString().replace("-", "")
@@ -119,6 +120,7 @@ data class Habit(
this.type = other.type
this.unit = other.unit
this.uuid = other.uuid
this.increment = other.increment
}
override fun equals(other: Any?): Boolean {