commit | f579b5041afe8272c79f9f13001120d37eeeee7b | [log] [tgz] |
---|---|---|
author | Adam Cohen <adamcohen@google.com> | Tue Apr 19 17:03:08 2011 -0700 |
committer | Adam Cohen <adamcohen@google.com> | Tue Apr 19 17:03:08 2011 -0700 |
tree | 4c6e4f42c5334e910f9bec527dbb4232430b5e3f | |
parent | e0310965022e7a1adb7ad489505d404186608689 [diff] |
Fixing a bug in CellLayoutChildren getChildAt(int, int) Change-Id: I50879c93ce5bf949242eb0174eb48e560cd657cc
diff --git a/src/com/android/launcher2/CellLayoutChildren.java b/src/com/android/launcher2/CellLayoutChildren.java index e4e6fb1..ed81419 100644 --- a/src/com/android/launcher2/CellLayoutChildren.java +++ b/src/com/android/launcher2/CellLayoutChildren.java
@@ -66,7 +66,7 @@ CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && - (lp.cellY <= y) && (y < lp.cellY + lp.cellHSpan)) { + (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) { return child; } }