Skip to content

Commit 596b185

Browse files
author
Winson Chung
committed
Skip merge and assign RemoteViews directly if updateAppWidget() has not been called. (Bug 7214731)
Change-Id: Ie19b629deea9133800df265a2cebedc8bcb2a74d
1 parent e1f4ebf commit 596b185

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)