Loading core/java/android/widget/Editor.java +29 −24 Original line number Diff line number Diff line Loading @@ -4517,7 +4517,10 @@ public class Editor { final float eventY = event.getY(); switch (event.getActionMasked()) { case MotionEvent.ACTION_DOWN: if (extractedTextModeWillBeStarted()) { // Prevent duplicating the selection handles until the mode starts. hide(); } else { // Remember finger down position, to be able to start selection from there. mMinTouchOffset = mMaxTouchOffset = mTextView.getOffsetForPosition( eventX, eventY); Loading @@ -4532,7 +4535,8 @@ public class Editor { ViewConfiguration viewConfiguration = ViewConfiguration.get( mTextView.getContext()); int doubleTapSlop = viewConfiguration.getScaledDoubleTapSlop(); boolean stayedInArea = distanceSquared < doubleTapSlop * doubleTapSlop; boolean stayedInArea = distanceSquared < doubleTapSlop * doubleTapSlop; if (stayedInArea && isPositionOnText(eventX, eventY)) { selectCurrentWordAndStartDrag(); Loading @@ -4545,6 +4549,7 @@ public class Editor { mDownPositionY = eventY; mGestureStayedInTapRegion = true; mHaventMovedEnoughToStartDrag = true; } break; case MotionEvent.ACTION_POINTER_DOWN: Loading Loading
core/java/android/widget/Editor.java +29 −24 Original line number Diff line number Diff line Loading @@ -4517,7 +4517,10 @@ public class Editor { final float eventY = event.getY(); switch (event.getActionMasked()) { case MotionEvent.ACTION_DOWN: if (extractedTextModeWillBeStarted()) { // Prevent duplicating the selection handles until the mode starts. hide(); } else { // Remember finger down position, to be able to start selection from there. mMinTouchOffset = mMaxTouchOffset = mTextView.getOffsetForPosition( eventX, eventY); Loading @@ -4532,7 +4535,8 @@ public class Editor { ViewConfiguration viewConfiguration = ViewConfiguration.get( mTextView.getContext()); int doubleTapSlop = viewConfiguration.getScaledDoubleTapSlop(); boolean stayedInArea = distanceSquared < doubleTapSlop * doubleTapSlop; boolean stayedInArea = distanceSquared < doubleTapSlop * doubleTapSlop; if (stayedInArea && isPositionOnText(eventX, eventY)) { selectCurrentWordAndStartDrag(); Loading @@ -4545,6 +4549,7 @@ public class Editor { mDownPositionY = eventY; mGestureStayedInTapRegion = true; mHaventMovedEnoughToStartDrag = true; } break; case MotionEvent.ACTION_POINTER_DOWN: Loading