|
|
@ -46,8 +46,8 @@ class WidgetBehavior @Inject constructor(
|
|
|
|
setValue(habit, timestamp, Entry.NO)
|
|
|
|
setValue(habit, timestamp, Entry.NO)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fun onToggleRepetition(habit: Habit, timestamp: Timestamp?) {
|
|
|
|
fun onToggleRepetition(habit: Habit, timestamp: Timestamp) {
|
|
|
|
val currentValue = habit.originalEntries.get(timestamp!!).value
|
|
|
|
val currentValue = habit.originalEntries.get(timestamp).value
|
|
|
|
val newValue: Int
|
|
|
|
val newValue: Int
|
|
|
|
newValue =
|
|
|
|
newValue =
|
|
|
|
if (preferences.isSkipEnabled) nextToggleValueWithSkip(
|
|
|
|
if (preferences.isSkipEnabled) nextToggleValueWithSkip(
|
|
|
|