summaryrefslogtreecommitdiff
path: root/android/text/Selection.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/text/Selection.java')
-rw-r--r--android/text/Selection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/text/Selection.java b/android/text/Selection.java
index 34456580..5256e471 100644
--- a/android/text/Selection.java
+++ b/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);
}