|
|
@ -79,13 +79,13 @@ public class WidgetBehavior
|
|
|
|
|
|
|
|
|
|
|
|
private void performToggle(@NonNull Habit habit, Timestamp timestamp)
|
|
|
|
private void performToggle(@NonNull Habit habit, Timestamp timestamp)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
getCommandRunner().execute(
|
|
|
|
commandRunner.execute(
|
|
|
|
new ToggleRepetitionCommand(getHabitList(), habit, timestamp),
|
|
|
|
new ToggleRepetitionCommand(habitList, habit, timestamp),
|
|
|
|
habit.getId());
|
|
|
|
habit.getId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setNumericValue(@NonNull Habit habit, Timestamp timestamp, int newValue) {
|
|
|
|
public void setNumericValue(@NonNull Habit habit, Timestamp timestamp, int newValue) {
|
|
|
|
getCommandRunner().execute(
|
|
|
|
commandRunner.execute(
|
|
|
|
new CreateRepetitionCommand(habit, timestamp, newValue),
|
|
|
|
new CreateRepetitionCommand(habit, timestamp, newValue),
|
|
|
|
habit.getId());
|
|
|
|
habit.getId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|