mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 09:38:52 -06:00
CreateRepetitionCommand: Run update() after executing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user