summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-06-11 18:03:05 +0900
committerJean Chalard <jchalard@google.com>2014-06-11 18:03:05 +0900
commit0a993100f98e0cacaf6281214e6b54be9cd1f9fc (patch)
tree167f77a7750a769214da4ea1cc00b68d24c5adbb /core/java/android/widget/TextView.java
parentedbfd040601f069a8f0d4440035283c94b915611 (diff)
Fix a CTS test
SpannableStringBuilder should throw an exception when the parameters to #insert and related methods are in the wrong order. We'll have to reopen b/9570771 and deal with it separately. Bug: 14965397 Change-Id: I01847e0010d23f98ad3def8ba030d36570528900
Diffstat (limited to 'core/java/android/widget/TextView.java')
-rw-r--r--core/java/android/widget/TextView.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index 43c8ddeab253..84202eb398e5 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -5842,7 +5842,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
int end = text.partialEndOffset;
if (end > N) end = N;
removeParcelableSpans(content, start, end);
- // If start > end, content.replace will swap them before using them.
content.replace(start, end, text.text);
}
}