am 25945ca2: Merge "Fix silly touch bug in TextView. Oops." into gingerbread

Merge commit '25945ca2e67c0e46ff2ad46590cd71ca5b4b4266' into gingerbread-plus-aosp

* commit '25945ca2e67c0e46ff2ad46590cd71ca5b4b4266':
  Fix silly touch bug in TextView. Oops.
This commit is contained in:
Adam Powell
2010-09-17 15:46:07 -07:00
committed by Android Git Automerger

View File

@@ -6714,7 +6714,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
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);
}