Fixing bug where workspace wouldn't accept drop

Change-Id: I23a4b70b42d2271afc12f9cb6ed429b6d320ebeb
This commit is contained in:
Adam Cohen
2011-08-30 22:46:55 -07:00
parent 11ffa5ffb3
commit 2e9f4fb38e
+7
View File
@@ -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;