Fixing widget overlapping another widget (issue 6475997)

Change-Id: Ic78afc0ef5a2eab2278feb080f6b81d4b2baaed2
This commit is contained in:
Adam Cohen committed 2012-05-10 16:52:25 -07:00
1 parent 50ead3b2e8
commit f1dcdf6113
3 files changed
+5 -3

No files matched your search

@@ -566,7 +566,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
mLauncher.getWorkspace().beginDragShared(v, this);
}
private void loadWidgetInBackground(final PendingAddWidgetInfo info) {
private void preloadWidget(final PendingAddWidgetInfo info) {
final AppWidgetProviderInfo pInfo = info.info;
if (pInfo.configure != null) {
return;
@@ -613,7 +613,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
// We are anticipating a long press, and we use this time to load bind and instantiate
// the widget. This will need to be cleaned up if it turns out no long press occurs.
mCreateWidgetInfo = new PendingAddWidgetInfo((PendingAddWidgetInfo) v.getTag());
loadWidgetInBackground(mCreateWidgetInfo);
preloadWidget(mCreateWidgetInfo);
}
private void cleanupWidgetPreloading() {