Convert the tap and drop live wallpaper commands coordinates to screen space.
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java
index df8ca89..8b141a4 100644
--- a/src/com/android/launcher2/CellLayout.java
+++ b/src/com/android/launcher2/CellLayout.java
@@ -565,8 +565,11 @@
if (lp.dropped) {
lp.dropped = false;
+ final int[] cellXY = mCellXY;
+ getLocationOnScreen(cellXY);
mWallpaperManager.sendWallpaperCommand(getWindowToken(), "android.home.drop",
- childLeft + lp.width / 2, childTop + lp.height / 2, 0, null);
+ cellXY[0] + childLeft + lp.width / 2,
+ cellXY[1] + childTop + lp.height / 2, 0, null);
}
}
}