diff --git a/android-app-widget/src/main/java/org/solovyev/android/calculator/widget/AbstractCalculatorWidgetProvider.java b/android-app-widget/src/main/java/org/solovyev/android/calculator/widget/AbstractCalculatorWidgetProvider.java index f39eb345..271dc78f 100644 --- a/android-app-widget/src/main/java/org/solovyev/android/calculator/widget/AbstractCalculatorWidgetProvider.java +++ b/android-app-widget/src/main/java/org/solovyev/android/calculator/widget/AbstractCalculatorWidgetProvider.java @@ -53,11 +53,7 @@ abstract class AbstractCalculatorWidgetProvider extends AppWidgetProvider implem protected AbstractCalculatorWidgetProvider() { final Class componentClass = this.getComponentClass(); - final CalculatorExternalListenersContainer externalListenersContainer = Locator.getInstance().getExternalListenersContainer(); - // NOTE: null might be in tests, now robolectric creates widget provider before application - if (externalListenersContainer != null) { - externalListenersContainer.addExternalListener(componentClass); - } + Locator.getInstance().getExternalListenersContainer().addExternalListener(componentClass); } /*