Loading core/java/android/widget/Editor.java +11 −7 Original line number Diff line number Diff line Loading @@ -2584,15 +2584,19 @@ public class Editor { if (offset == -1) { return; } stopTextActionModeWithPreservingSelection(); if (mTextView.canSelectText()) { final boolean isOnSelection = mTextView.hasSelection() && offset >= mTextView.getSelectionStart() && offset <= mTextView.getSelectionEnd(); && offset >= mTextView.getSelectionStart() && offset <= mTextView.getSelectionEnd(); if (!isOnSelection) { // Right clicked position is not on the selection. Remove the selection and move the // cursor to the right clicked position. Selection.setSelection((Spannable) mTextView.getText(), offset); stopTextActionMode(); } } if (shouldOfferToShowSuggestions()) { final SuggestionInfo[] suggestionInfoArray = Loading Loading
core/java/android/widget/Editor.java +11 −7 Original line number Diff line number Diff line Loading @@ -2584,15 +2584,19 @@ public class Editor { if (offset == -1) { return; } stopTextActionModeWithPreservingSelection(); if (mTextView.canSelectText()) { final boolean isOnSelection = mTextView.hasSelection() && offset >= mTextView.getSelectionStart() && offset <= mTextView.getSelectionEnd(); && offset >= mTextView.getSelectionStart() && offset <= mTextView.getSelectionEnd(); if (!isOnSelection) { // Right clicked position is not on the selection. Remove the selection and move the // cursor to the right clicked position. Selection.setSelection((Spannable) mTextView.getText(), offset); stopTextActionMode(); } } if (shouldOfferToShowSuggestions()) { final SuggestionInfo[] suggestionInfoArray = Loading