Fixing drag start position on workspace
Change-Id: If7b31e8d11bfc7cc6612155a72465ace3b928b97
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 701b33b..f8e3f5a 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -1984,7 +1984,8 @@
mLauncher.getDragLayer().getLocationInDragLayer(child, mTempXY);
final int dragLayerX = (int) mTempXY[0] + (child.getWidth() - bmpWidth) / 2;
- final int dragLayerY = (int) mTempXY[1] + (child.getHeight() - bmpHeight) / 2;
+ int dragLayerY = (int) mTempXY[1] + (child.getHeight() - bmpHeight) / 2;
+ dragLayerY -= (child.getHeight() - b.getHeight()) / 2;
Rect dragRect = null;
if (child instanceof BubbleTextView) {