am 558ae35f: Apply drag-and-drop location fix to widgets & shortcuts.

* commit '558ae35f52edb0f4621223596bcea65138730fd6':
  Apply drag-and-drop location fix to widgets & shortcuts.
This commit is contained in:
Daniel Sandler
2011-02-04 08:51:22 -08:00
committed by Android Git Automerger
+2 -2
View File
@@ -2747,8 +2747,8 @@ public class Workspace extends SmoothPagedView
// widgets/shortcuts/folders in a slightly different way
// Only set touchXY if you are supporting spring loaded adding of items
int[] touchXY = new int[2];
touchXY[0] = x;
touchXY[1] = y;
touchXY[0] = mSpringLoadedDropX;
touchXY[1] = mSpringLoadedDropY;
switch (info.itemType) {
case LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET:
mLauncher.addAppWidgetFromDrop((PendingAddWidgetInfo) info, screen, touchXY);