This commit is contained in:
Sergey Solovyev 2013-06-25 12:18:59 +04:00
parent 46e2a1c736
commit 231fdde672

View File

@ -53,11 +53,7 @@ abstract class AbstractCalculatorWidgetProvider extends AppWidgetProvider implem
protected AbstractCalculatorWidgetProvider() {
final Class<? extends AppWidgetProvider> 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);
}
/*