Loading core/java/android/widget/TextView.java +13 −18 Original line number Diff line number Diff line Loading @@ -5236,6 +5236,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * @param text The auto complete text the user has selected. */ public void onCommitCompletion(CompletionInfo text) { // Intentionally empty } /** Loading Loading @@ -8660,8 +8661,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener private boolean mIsActive = false; // The insertion handle can have an associated PastePopupMenu private boolean mIsInsertionHandle = false; // Used to detect taps on the insertion handle, which will affect the PastePopupMenu private long mTouchTimer; private PastePopupMenu mPastePopupWindow; // Touch-up filter: number of previous positions remembered Loading Loading @@ -8932,9 +8931,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener mLastParentX = coords[0]; mLastParentY = coords[1]; mIsDragging = true; if (mIsInsertionHandle) { mTouchTimer = SystemClock.uptimeMillis(); } break; } Loading Loading @@ -8964,8 +8960,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener case MotionEvent.ACTION_UP: if (mIsInsertionHandle) { long delay = SystemClock.uptimeMillis() - mTouchTimer; if (delay < ViewConfiguration.getTapTimeout()) { final float deltaX = mDownPositionX - ev.getRawX(); final float deltaY = mDownPositionY - ev.getRawY(); final float distanceSquared = deltaX * deltaX + deltaY * deltaY; Loading @@ -8978,7 +8972,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } } } } filterOnTouchUp(); mIsDragging = false; break; Loading Loading @@ -9360,7 +9353,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } @Override public void onDetached() {} public void onDetached() { // Nothing to do } } private void hideInsertionPointCursorController() { Loading Loading
core/java/android/widget/TextView.java +13 −18 Original line number Diff line number Diff line Loading @@ -5236,6 +5236,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * @param text The auto complete text the user has selected. */ public void onCommitCompletion(CompletionInfo text) { // Intentionally empty } /** Loading Loading @@ -8660,8 +8661,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener private boolean mIsActive = false; // The insertion handle can have an associated PastePopupMenu private boolean mIsInsertionHandle = false; // Used to detect taps on the insertion handle, which will affect the PastePopupMenu private long mTouchTimer; private PastePopupMenu mPastePopupWindow; // Touch-up filter: number of previous positions remembered Loading Loading @@ -8932,9 +8931,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener mLastParentX = coords[0]; mLastParentY = coords[1]; mIsDragging = true; if (mIsInsertionHandle) { mTouchTimer = SystemClock.uptimeMillis(); } break; } Loading Loading @@ -8964,8 +8960,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener case MotionEvent.ACTION_UP: if (mIsInsertionHandle) { long delay = SystemClock.uptimeMillis() - mTouchTimer; if (delay < ViewConfiguration.getTapTimeout()) { final float deltaX = mDownPositionX - ev.getRawX(); final float deltaY = mDownPositionY - ev.getRawY(); final float distanceSquared = deltaX * deltaX + deltaY * deltaY; Loading @@ -8978,7 +8972,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } } } } filterOnTouchUp(); mIsDragging = false; break; Loading Loading @@ -9360,7 +9353,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } @Override public void onDetached() {} public void onDetached() { // Nothing to do } } private void hideInsertionPointCursorController() { Loading