mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-15 21:48:50 -06:00
add increment to Edit UI and Habit
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user