Loading core/java/android/widget/Editor.java +9 −2 Original line number Diff line number Diff line Loading @@ -1890,6 +1890,11 @@ public class Editor { if (!extractedTextModeWillBeStarted()) { if (isCursorInsideEasyCorrectionSpan()) { // Cancel the single tap delayed runnable. if (mSelectionModeWithoutSelectionRunnable != null) { mTextView.removeCallbacks(mSelectionModeWithoutSelectionRunnable); } mShowSuggestionRunnable = new Runnable() { public void run() { showSuggestions(); Loading Loading @@ -3819,13 +3824,15 @@ public class Editor { SystemClock.uptimeMillis() - TextView.sLastCutCopyOrTextChangedTime; // Cancel the single tap delayed runnable. if (mDoubleTap && mSelectionModeWithoutSelectionRunnable != null) { if (mSelectionModeWithoutSelectionRunnable != null && (mDoubleTap || isCursorInsideEasyCorrectionSpan())) { mTextView.removeCallbacks(mSelectionModeWithoutSelectionRunnable); } // Prepare and schedule the single tap runnable to run exactly after the double tap // timeout has passed. if (!mDoubleTap && (durationSinceCutOrCopy < RECENT_CUT_COPY_DURATION)) { if (!mDoubleTap && !isCursorInsideEasyCorrectionSpan() && (durationSinceCutOrCopy < RECENT_CUT_COPY_DURATION)) { if (mSelectionModeWithoutSelectionRunnable == null) { mSelectionModeWithoutSelectionRunnable = new Runnable() { public void run() { Loading core/java/android/widget/TextView.java +2 −2 Original line number Diff line number Diff line Loading @@ -8015,8 +8015,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * through a thunk. */ void sendAfterTextChanged(Editable text) { sLastCutCopyOrTextChangedTime = 0; if (mListeners != null) { final ArrayList<TextWatcher> list = mListeners; final int count = list.size(); Loading Loading @@ -8049,6 +8047,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * through a thunk. */ void handleTextChanged(CharSequence buffer, int start, int before, int after) { sLastCutCopyOrTextChangedTime = 0; final Editor.InputMethodState ims = mEditor == null ? null : mEditor.mInputMethodState; if (ims == null || ims.mBatchEditNesting == 0) { updateAfterEdit(); Loading Loading
core/java/android/widget/Editor.java +9 −2 Original line number Diff line number Diff line Loading @@ -1890,6 +1890,11 @@ public class Editor { if (!extractedTextModeWillBeStarted()) { if (isCursorInsideEasyCorrectionSpan()) { // Cancel the single tap delayed runnable. if (mSelectionModeWithoutSelectionRunnable != null) { mTextView.removeCallbacks(mSelectionModeWithoutSelectionRunnable); } mShowSuggestionRunnable = new Runnable() { public void run() { showSuggestions(); Loading Loading @@ -3819,13 +3824,15 @@ public class Editor { SystemClock.uptimeMillis() - TextView.sLastCutCopyOrTextChangedTime; // Cancel the single tap delayed runnable. if (mDoubleTap && mSelectionModeWithoutSelectionRunnable != null) { if (mSelectionModeWithoutSelectionRunnable != null && (mDoubleTap || isCursorInsideEasyCorrectionSpan())) { mTextView.removeCallbacks(mSelectionModeWithoutSelectionRunnable); } // Prepare and schedule the single tap runnable to run exactly after the double tap // timeout has passed. if (!mDoubleTap && (durationSinceCutOrCopy < RECENT_CUT_COPY_DURATION)) { if (!mDoubleTap && !isCursorInsideEasyCorrectionSpan() && (durationSinceCutOrCopy < RECENT_CUT_COPY_DURATION)) { if (mSelectionModeWithoutSelectionRunnable == null) { mSelectionModeWithoutSelectionRunnable = new Runnable() { public void run() { Loading
core/java/android/widget/TextView.java +2 −2 Original line number Diff line number Diff line Loading @@ -8015,8 +8015,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * through a thunk. */ void sendAfterTextChanged(Editable text) { sLastCutCopyOrTextChangedTime = 0; if (mListeners != null) { final ArrayList<TextWatcher> list = mListeners; final int count = list.size(); Loading Loading @@ -8049,6 +8047,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * through a thunk. */ void handleTextChanged(CharSequence buffer, int start, int before, int after) { sLastCutCopyOrTextChangedTime = 0; final Editor.InputMethodState ims = mEditor == null ? null : mEditor.mInputMethodState; if (ims == null || ims.mBatchEditNesting == 0) { updateAfterEdit(); Loading