Skip to content

Commit ee0d8de

Browse files
Winson ChungAndroid (Google) Code Review
authored andcommitted
Merge "Skip merge and assign RemoteViews directly if updateAppWidget() has not been called. (Bug 7214731)" into jb-mr1-dev
2 parents b3c3815 + 596b185 commit ee0d8de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/AppWidgetServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ void updateAppWidgetInstanceLocked(AppWidgetId id, RemoteViews views, boolean is
996996
// drop unbound appWidgetIds (shouldn't be possible under normal circumstances)
997997
if (id != null && id.provider != null && !id.provider.zombie && !id.host.zombie) {
998998

999-
if (!isPartialUpdate) {
999+
if (!isPartialUpdate || id.views == null) {
10001000
// For a full update we replace the RemoteViews completely.
10011001
id.views = views;
10021002
} else {

0 commit comments

Comments
 (0)