summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2017-05-02 18:10:10 -0700
committerRoozbeh Pournader <roozbeh@google.com>2017-05-05 11:04:29 -0700
commite57886e659031b2400038d9cf00e48ab423e66f8 (patch)
tree077f83142f0b008fee4ee4c4565095e8fe03f706 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent5f0e436548ea3bd10cef480c194da7da6080ac1e (diff)
Don't crash in TextUtil.concat() with paragraph spans
This switches TextUtils.concat() to use SpannableStringBuilder if there are any spans in the input strings. As a result, we can avoid crashes when concatenating two CharSequences can result in paragraph spans that now don't happen to be at paragraph boundaries. Also document the exact behavior of the method for edge cases based on the previous implementation. Change-Id: I9caffbe95ed729b9c10d63a9e7d22b1e8c7185a3 Fixes: 28271770 Test: CTS tests added and old CTS tests continue to pass. Test: cts-tradefed run cts-dev --module CtsTextTestCases --test android.text.cts.TextUtilsTest
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions