From 6d5c6ecb5f19966b8ff79fdf48d96bd00dc1dd91 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Wed, 14 Jul 2010 11:14:47 -0700 Subject: Fix bug with estimate drop cell offset Change-Id: I9b8370a858dab7d656bbfb1897e469ef4f2aec06 --- src/com/android/launcher2/CellLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index 3f60d5047..62ede4d33 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -704,7 +704,7 @@ public class CellLayout extends ViewGroup { final int countX = getCountX(); final int countY = getCountY(); - pointToCellRounded(originX + (mCellWidth / 2), originY + (mCellHeight / 2), result); + pointToCellRounded(originX, originY, result); // If the item isn't fully on this screen, snap to the edges int rightOverhang = result[0] + spanX - countX; -- cgit v1.2.3