summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2011-04-19 17:03:08 -0700
committerAdam Cohen <adamcohen@google.com>2011-04-19 17:03:08 -0700
commitf579b5041afe8272c79f9f13001120d37eeeee7b (patch)
tree4c6e4f42c5334e910f9bec527dbb4232430b5e3f
parente0310965022e7a1adb7ad489505d404186608689 (diff)
downloadandroid_packages_apps_Trebuchet-f579b5041afe8272c79f9f13001120d37eeeee7b.tar.gz
android_packages_apps_Trebuchet-f579b5041afe8272c79f9f13001120d37eeeee7b.tar.bz2
android_packages_apps_Trebuchet-f579b5041afe8272c79f9f13001120d37eeeee7b.zip
Fixing a bug in CellLayoutChildren getChildAt(int, int)
Change-Id: I50879c93ce5bf949242eb0174eb48e560cd657cc
-rw-r--r--src/com/android/launcher2/CellLayoutChildren.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher2/CellLayoutChildren.java b/src/com/android/launcher2/CellLayoutChildren.java
index e4e6fb197..ed814199c 100644
--- a/src/com/android/launcher2/CellLayoutChildren.java
+++ b/src/com/android/launcher2/CellLayoutChildren.java
@@ -66,7 +66,7 @@ public class CellLayoutChildren extends ViewGroup {
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;
}
}