Do not clear the changed view when there is an update to RemoteViews

The way we are stashing the pending updates should follow the behavior pattern as that shown in AppWidgetServiceImpl

Fix: 277120633
Test: Manual
Change-Id: I92b3edb078b30873c2ef1b9fe408cbb76a34e135
This commit is contained in:
Sihua Ma
2023-04-05 15:18:12 -07:00
parent 75f7bbc150
commit 6090c345a1
@@ -155,7 +155,6 @@ public final class QuickstepWidgetHolder extends LauncherWidgetHolder {
} else if (KEY_VIEWS_UPDATE.equals(key)) {
// For views update, remove all previous updates, except the provider
pendingUpdate.remoteViews = (RemoteViews) data;
pendingUpdate.changedViews.clear();
} else if (KEY_VIEW_DATA_CHANGED.equals(key)) {
pendingUpdate.changedViews.add((Integer) data);
}