Loading core/java/android/widget/TextView.java +19 −2 Original line number Diff line number Diff line Loading @@ -342,6 +342,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener private int mTextEditSuggestionItemLayout; private SuggestionsPopupWindow mSuggestionsPopupWindow; private SuggestionRangeSpan mSuggestionRangeSpan; private Runnable mShowSuggestionRunnable; private int mCursorDrawableRes; private final Drawable[] mCursorDrawable = new Drawable[2]; Loading Loading @@ -4513,6 +4514,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener mSelectionModifierCursorController.onDetached(); } if (mShowSuggestionRunnable != null) { removeCallbacks(mShowSuggestionRunnable); } hideControllers(); resetResolvedDrawables(); Loading Loading @@ -8330,6 +8335,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener getSelectionController().onTouchEvent(event); } if (mShowSuggestionRunnable != null) { removeCallbacks(mShowSuggestionRunnable); } if (action == MotionEvent.ACTION_DOWN) { mLastDownPositionX = event.getX(); mLastDownPositionY = event.getY(); Loading Loading @@ -8370,7 +8379,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener ClickableSpan[] links = ((Spannable) mText).getSpans(getSelectionStart(), getSelectionEnd(), ClickableSpan.class); if (links.length != 0) { if (links.length > 0) { links[0].onClick(this); handled = true; } Loading @@ -8397,7 +8406,15 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } if (!extractedTextModeWillBeStarted()) { if (isCursorInsideEasyCorrectionSpan()) { if (mShowSuggestionRunnable == null) { mShowSuggestionRunnable = new Runnable() { public void run() { showSuggestions(); } }; } postDelayed(mShowSuggestionRunnable, ViewConfiguration.getDoubleTapTimeout()); } else if (hasInsertionController()) { getInsertionController().show(); } Loading Loading
core/java/android/widget/TextView.java +19 −2 Original line number Diff line number Diff line Loading @@ -342,6 +342,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener private int mTextEditSuggestionItemLayout; private SuggestionsPopupWindow mSuggestionsPopupWindow; private SuggestionRangeSpan mSuggestionRangeSpan; private Runnable mShowSuggestionRunnable; private int mCursorDrawableRes; private final Drawable[] mCursorDrawable = new Drawable[2]; Loading Loading @@ -4513,6 +4514,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener mSelectionModifierCursorController.onDetached(); } if (mShowSuggestionRunnable != null) { removeCallbacks(mShowSuggestionRunnable); } hideControllers(); resetResolvedDrawables(); Loading Loading @@ -8330,6 +8335,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener getSelectionController().onTouchEvent(event); } if (mShowSuggestionRunnable != null) { removeCallbacks(mShowSuggestionRunnable); } if (action == MotionEvent.ACTION_DOWN) { mLastDownPositionX = event.getX(); mLastDownPositionY = event.getY(); Loading Loading @@ -8370,7 +8379,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener ClickableSpan[] links = ((Spannable) mText).getSpans(getSelectionStart(), getSelectionEnd(), ClickableSpan.class); if (links.length != 0) { if (links.length > 0) { links[0].onClick(this); handled = true; } Loading @@ -8397,7 +8406,15 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } if (!extractedTextModeWillBeStarted()) { if (isCursorInsideEasyCorrectionSpan()) { if (mShowSuggestionRunnable == null) { mShowSuggestionRunnable = new Runnable() { public void run() { showSuggestions(); } }; } postDelayed(mShowSuggestionRunnable, ViewConfiguration.getDoubleTapTimeout()); } else if (hasInsertionController()) { getInsertionController().show(); } Loading