Fixing issue where multiple widget pages would fail to load correctly, preventing you from adding widgets. (Bug 6556434)

Change-Id: I48a8aa51d892aef7036009a608903fe089136d82
This commit is contained in:
Winson Chung
2012-05-24 17:34:08 -07:00
parent bd24719851
commit 7ce9985d37
2 changed files with 16 additions and 0 deletions
@@ -974,6 +974,12 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
task.cancel(false);
iter.remove();
mDirtyPageContent.set(task.page, true);
// We've already preallocated the views for the data to load into, so clear them as well
View v = getPageAt(task.page);
if (v instanceof PagedViewGridLayout) {
((PagedViewGridLayout) v).removeAllViewsOnPage();
}
}
mDeferredSyncWidgetPageItems.clear();
}