Files
frameworks_base/core/java/android/text
Siyamed Sinir 3463c04b51 Fix SpannableStringBuilder.replace() exception.
When SpannableStringBuilder.replace is called with a source text that
contains a span with SPAN_PARAGRAPH flag, the code tries to retain the
spans. However when the paragraph boundary constraint is not satisfied,
setSpan method throws an exception. Updated the rule as: if the source
text has a span with SPAN_PARAGRAPH flag check if it can be copied into
the target. If not, discard the span. Also updated the JavaDoc for
Spanned and Editable.

Bug: 22521443
Change-Id: Ie8541e00bfdf5b8b0115ad7b26cb9f83a6a3ee55
2016-01-07 12:56:09 -08:00
..
2015-12-02 14:24:11 +00:00
2016-01-06 19:23:43 +09:00