OSDN Git Service

Fix: text selection bubbles move along with the text
authorAndrei Stingaceanu <stg@google.com>
Thu, 7 May 2015 15:49:49 +0000 (16:49 +0100)
committerAndrei Stingaceanu <stg@google.com>
Thu, 14 May 2015 13:30:18 +0000 (14:30 +0100)
Always hide the selection cursor when showing the
insertion cursor.

Bug: 19857679
Change-Id: I549552fa5026e60f94900364b8194217e0de4b4a

core/java/android/widget/Editor.java

index 55f4562..5e33f83 100644 (file)
@@ -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() {