From dbba74e81faba861e1a5880e36e3f3268c5fb3bd Mon Sep 17 00:00:00 2001 From: Winson Date: Tue, 11 Aug 2015 14:29:13 -0700 Subject: Always call onProvidersChanged() when packages containing widgets are updated. - In the existing logic, the call to onProvidersChanged() is called when a package with widgets is added or removed, but only called when a package is updated _and_ there is an app widget bound to a host. This differs from what the expected behavior is based on the documentation and means that packages with widgets that update have no way of notifying host apps of changes except via package events. Bug: 20698931 Change-Id: I60af36d51e99ca1ea751d9d9d03a50ef2d5bef98 --- .../java/com/android/server/appwidget/AppWidgetServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services') diff --git a/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java b/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java index 30680ed..fa87270 100644 --- a/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java +++ b/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java @@ -2905,9 +2905,9 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku } // Now that we've told the host, push out an update. sendUpdateIntentLocked(provider, appWidgetIds); - providersUpdated = true; } } + providersUpdated = true; } } } -- cgit v1.1