am 5f74f11c: am 7ce9985d: Fixing issue where multiple widget pages would fail to load correctly, preventing you from adding widgets. (Bug 6556434)
* commit '5f74f11cc18fd75004fb39e9e0b942b222811c53': Fixing issue where multiple widget pages would fail to load correctly, preventing you from adding widgets. (Bug 6556434)
This commit is contained in:
commit
96242bf8ed
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -39,6 +39,11 @@ class PendingAddShortcutInfo extends PendingAddItemInfo {
|
|||
public PendingAddShortcutInfo(ActivityInfo activityInfo) {
|
||||
shortcutActivityInfo = activityInfo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Shortcut: " + shortcutActivityInfo.packageName;
|
||||
}
|
||||
}
|
||||
|
||||
class PendingAddWidgetInfo extends PendingAddItemInfo {
|
||||
|
@ -91,4 +96,9 @@ class PendingAddWidgetInfo extends PendingAddItemInfo {
|
|||
minSpanX = copy.minSpanX;
|
||||
minSpanY = copy.minSpanY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Widget: " + componentName.toShortString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue