diff options
author | Siyamed Sinir <siyamed@google.com> | 2016-01-06 13:02:59 -0800 |
---|---|---|
committer | Siyamed Sinir <siyamed@google.com> | 2016-01-07 12:56:09 -0800 |
commit | 3463c04b515426b74c5a92cb8de7d657b7c255c0 (patch) | |
tree | e6f3db68cd3fc82f30f8692649c237ac88c3c930 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 9d7272a6694756861b8955d19e32283d8fce37c2 (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions