Loading core/java/android/widget/Editor.java +6 −1 Original line number Diff line number Diff line Loading @@ -390,6 +390,7 @@ public class Editor { mPreserveDetachedSelection = true; hideControllers(); stopSelectionActionMode(); mPreserveDetachedSelection = false; mTemporaryDetach = false; } Loading Loading @@ -624,7 +625,6 @@ public class Editor { mSuggestionsPopupWindow.hide(); } hideInsertionPointCursorController(); stopSelectionActionMode(); } /** Loading Loading @@ -1101,10 +1101,12 @@ public class Editor { final int selStart = mTextView.getSelectionStart(); final int selEnd = mTextView.getSelectionEnd(); hideControllers(); stopSelectionActionMode(); Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); } else { if (mTemporaryDetach) mPreserveDetachedSelection = true; hideControllers(); stopSelectionActionMode(); if (mTemporaryDetach) mPreserveDetachedSelection = false; downgradeEasyCorrectionSpans(); } Loading Loading @@ -1147,6 +1149,7 @@ public class Editor { // We do not hide the span controllers, since they can be added when a new text is // inserted into the text view (voice IME). hideCursorControllers(); stopSelectionActionMode(); } private int getLastTapPosition() { Loading Loading @@ -1878,6 +1881,7 @@ public class Editor { void onTouchUpEvent(MotionEvent event) { boolean selectAllGotFocus = mSelectAllOnFocus && mTextView.didTouchFocusSelect(); hideControllers(); stopSelectionActionMode(); CharSequence text = mTextView.getText(); if (!selectAllGotFocus && text.length() > 0) { // Move cursor Loading Loading @@ -1998,6 +2002,7 @@ public class Editor { mSuggestionsPopupWindow = new SuggestionsPopupWindow(); } hideControllers(); stopSelectionActionMode(); mSuggestionsPopupWindow.show(); } Loading core/java/android/widget/TextView.java +2 −0 Original line number Diff line number Diff line Loading @@ -6423,6 +6423,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener // extracted mode will start. Some text is selected though, and will trigger an action mode // in the extracted view. mEditor.hideControllers(); stopSelectionActionMode(); } /** Loading Loading @@ -8257,6 +8258,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener super.onVisibilityChanged(changedView, visibility); if (mEditor != null && visibility != VISIBLE) { mEditor.hideControllers(); stopSelectionActionMode(); } } Loading Loading
core/java/android/widget/Editor.java +6 −1 Original line number Diff line number Diff line Loading @@ -390,6 +390,7 @@ public class Editor { mPreserveDetachedSelection = true; hideControllers(); stopSelectionActionMode(); mPreserveDetachedSelection = false; mTemporaryDetach = false; } Loading Loading @@ -624,7 +625,6 @@ public class Editor { mSuggestionsPopupWindow.hide(); } hideInsertionPointCursorController(); stopSelectionActionMode(); } /** Loading Loading @@ -1101,10 +1101,12 @@ public class Editor { final int selStart = mTextView.getSelectionStart(); final int selEnd = mTextView.getSelectionEnd(); hideControllers(); stopSelectionActionMode(); Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); } else { if (mTemporaryDetach) mPreserveDetachedSelection = true; hideControllers(); stopSelectionActionMode(); if (mTemporaryDetach) mPreserveDetachedSelection = false; downgradeEasyCorrectionSpans(); } Loading Loading @@ -1147,6 +1149,7 @@ public class Editor { // We do not hide the span controllers, since they can be added when a new text is // inserted into the text view (voice IME). hideCursorControllers(); stopSelectionActionMode(); } private int getLastTapPosition() { Loading Loading @@ -1878,6 +1881,7 @@ public class Editor { void onTouchUpEvent(MotionEvent event) { boolean selectAllGotFocus = mSelectAllOnFocus && mTextView.didTouchFocusSelect(); hideControllers(); stopSelectionActionMode(); CharSequence text = mTextView.getText(); if (!selectAllGotFocus && text.length() > 0) { // Move cursor Loading Loading @@ -1998,6 +2002,7 @@ public class Editor { mSuggestionsPopupWindow = new SuggestionsPopupWindow(); } hideControllers(); stopSelectionActionMode(); mSuggestionsPopupWindow.show(); } Loading
core/java/android/widget/TextView.java +2 −0 Original line number Diff line number Diff line Loading @@ -6423,6 +6423,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener // extracted mode will start. Some text is selected though, and will trigger an action mode // in the extracted view. mEditor.hideControllers(); stopSelectionActionMode(); } /** Loading Loading @@ -8257,6 +8258,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener super.onVisibilityChanged(changedView, visibility); if (mEditor != null && visibility != VISIBLE) { mEditor.hideControllers(); stopSelectionActionMode(); } } Loading