From 231fdde67275ab79226f57b5300cf1ead591dc24 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Tue, 25 Jun 2013 12:18:59 +0400 Subject: [PATCH] reverted --- .../calculator/widget/AbstractCalculatorWidgetProvider.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } /*