Merge "Fix silly touch bug in TextView. Oops." into gingerbread

This commit is contained in:
Adam Powell
2010-09-17 15:41:11 -07:00
committed by Android (Google) Code Review

View File

@@ -6709,7 +6709,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);
}