summaryrefslogtreecommitdiff
path: root/core/java/android/text/Selection.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/text/Selection.java')
-rw-r--r--core/java/android/text/Selection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/text/Selection.java b/core/java/android/text/Selection.java
index 34456580ee61..5256e471e974 100644
--- a/core/java/android/text/Selection.java
+++ b/core/java/android/text/Selection.java
@@ -180,7 +180,7 @@ public class Selection {
* Remove the selection or cursor, if any, from the text.
*/
public static final void removeSelection(Spannable text) {
- text.removeSpan(SELECTION_START);
+ text.removeSpan(SELECTION_START, Spanned.SPAN_INTERMEDIATE);
text.removeSpan(SELECTION_END);
removeMemory(text);
}