summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2015-06-12 11:10:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-12 11:10:20 +0000
commita31940df170ea7e8253736ce7b5dba2176699c25 (patch)
tree876e8db7319563091f72628e75836ae6f48ff1b8 /core/java/android
parentb24f01f473b98e98f0c80b1a937a18921cf0521a (diff)
parentf4e347d6aec7f1ff09c23aea8f3378d0b390eac6 (diff)
Merge "Reset drag accelerator state in Editor#sendOnTextChanged." into mnc-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/widget/Editor.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java
index e43237aa56c2..cf6a01887baa 100644
--- a/core/java/android/widget/Editor.java
+++ b/core/java/android/widget/Editor.java
@@ -1162,6 +1162,10 @@ 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();
+ // Reset drag accelerator.
+ if (mSelectionModifierCursorController != null) {
+ mSelectionModifierCursorController.resetTouchOffsets();
+ }
stopTextActionMode();
}