CreateRepetitionCommand: Run update() after executing

This commit is contained in:
2020-08-22 18:10:29 -05:00
parent 09eb8c9f4d
commit f368e43158
9 changed files with 23 additions and 13 deletions

View File

@@ -46,7 +46,9 @@ class NumericalCheckmarkWidgetActivity : Activity(), ListHabitsBehavior.NumberPi
val component = app.component
val parser = app.component.intentParser
data = parser.parseCheckmarkIntent(intent)
behavior = WidgetBehavior(component.commandRunner, component.notificationTray)
behavior = WidgetBehavior(component.habitList,
component.commandRunner,
component.notificationTray)
widgetUpdater = component.widgetUpdater
showNumberSelector(this)
}

View File

@@ -54,7 +54,7 @@ public class WidgetControllerTest extends BaseAndroidJVMTest
commandRunner = mock(CommandRunner.class);
notificationTray = mock(NotificationTray.class);
controller =
new WidgetBehavior(commandRunner, notificationTray);
new WidgetBehavior(habitList, commandRunner, notificationTray);
}
@Test