Merge "Fix silly touch bug in TextView. Oops." into gingerbread
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index cc8c1fd..a14d004 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -6709,7 +6709,7 @@
boolean handled = false;
final float x = event.getX();
final float y = event.getY();
- if (x < mLeft || x > mRight || y < mTop || y > mBottom) {
+ if (x < 0 || x >= mRight - mLeft || y < 0 || y >= mBottom - mTop) {
if (mInsertionPointCursorController != null) {
handled |= mInsertionPointCursorController.onTouchEvent(event);
}