From 558ae35f52edb0f4621223596bcea65138730fd6 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Fri, 4 Feb 2011 11:20:25 -0500 Subject: [PATCH] Apply drag-and-drop location fix to widgets & shortcuts. (Original fix in change I4c1085f8) Bug: 3424556 Change-Id: I32b5e83852417a61f3186cfcc83914bf25161fe4 --- src/com/android/launcher2/Workspace.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 7e91500a75..0daed37f8a 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -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);