From 2e9f4fb38e833b18fe403da17b00f830d6a5e86c Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Tue, 30 Aug 2011 22:46:55 -0700 Subject: Fixing bug where workspace wouldn't accept drop Change-Id: I23a4b70b42d2271afc12f9cb6ed429b6d320ebeb --- src/com/android/launcher2/Workspace.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 4ed4495ba..633cbe525 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -2121,6 +2121,13 @@ public class Workspace extends SmoothPagedView mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, mDragViewVisualCenter); + // We want the point to be mapped to the dragTarget. + if (mLauncher.isHotseatLayout(mDragTargetLayout)) { + mapPointFromSelfToSibling(mLauncher.getHotseat(), mDragViewVisualCenter); + } else { + mapPointFromSelfToChild(mDragTargetLayout, mDragViewVisualCenter, null); + } + int spanX = 1; int spanY = 1; View ignoreView = null; -- cgit v1.2.3