Merge "Skip merge and assign RemoteViews directly if updateAppWidget() has not been called. (Bug 7214731)" into jb-mr1-dev

This commit is contained in:
Winson Chung
2012-10-11 13:56:23 -07:00
committed by Android (Google) Code Review

View File

@@ -996,7 +996,7 @@ class AppWidgetServiceImpl {
// drop unbound appWidgetIds (shouldn't be possible under normal circumstances)
if (id != null && id.provider != null && !id.provider.zombie && !id.host.zombie) {
if (!isPartialUpdate) {
if (!isPartialUpdate || id.views == null) {
// For a full update we replace the RemoteViews completely.
id.views = views;
} else {