diff options
| author | Andrei Stingaceanu <stg@google.com> | 2015-05-07 16:49:49 +0100 |
|---|---|---|
| committer | Andrei Stingaceanu <stg@google.com> | 2015-05-14 14:30:18 +0100 |
| commit | 35c550c854a99ae890d7cffcee4491e68c71a09d (patch) | |
| tree | 5bd0651be2ca8826ffe7839a157311a85a7d575b /core/java/android | |
| parent | be752b1f28f1f3724b235e3f0a77b4c07c40e631 (diff) | |
Fix: text selection bubbles move along with the text
Always hide the selection cursor when showing the
insertion cursor.
Bug: 19857679
Change-Id: I549552fa5026e60f94900364b8194217e0de4b4a
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/widget/Editor.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index 55f4562afa92..5e33f83dd82b 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -1806,6 +1806,7 @@ public class Editor { // When the cursor moves, the word that was typed may need spell check mSpellChecker.onSelectionChanged(); } + if (!extractedTextModeWillBeStarted()) { if (isCursorInsideEasyCorrectionSpan()) { mShowSuggestionRunnable = new Runnable() { @@ -4113,6 +4114,10 @@ public class Editor { public void show() { getHandle().show(); + + if (mSelectionModifierCursorController != null) { + mSelectionModifierCursorController.hide(); + } } public void hide() { |
