Fix for not responsive home screen widget
If the app is killed the widget doesn't receive updates and it keeps the old value of the editor. Pressing f.e. cursor buttons in such case has not effect as real editor is empty and no "editor change" events are triggered, thus, widget is not updated. To solve the issue let's just update the widget any time its buttons are pressed.
This commit is contained in:
@@ -97,9 +97,6 @@ public class CalculatorApplication extends android.app.Application implements Sh
|
||||
@Nonnull
|
||||
protected final Handler uiHandler = new Handler();
|
||||
|
||||
@Nonnull
|
||||
private final CalculatorBroadcaster broadcaster = new CalculatorBroadcaster(this);
|
||||
|
||||
@Nonnull
|
||||
private final Wizards wizards = new CalculatorWizards(this);
|
||||
|
||||
@@ -194,7 +191,7 @@ public class CalculatorApplication extends android.app.Application implements Sh
|
||||
calculator.addCalculatorEventListener(listener);
|
||||
}
|
||||
|
||||
calculator.addCalculatorEventListener(broadcaster);
|
||||
calculator.addCalculatorEventListener(App.getBroadcaster());
|
||||
|
||||
Locator.getInstance().getCalculator().init();
|
||||
|
||||
|
Reference in New Issue
Block a user