summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSiyamed Sinir <siyamed@google.com>2016-01-12 10:54:43 -0800
committerSiyamed Sinir <siyamed@google.com>2016-01-20 16:27:39 -0800
commitfa05ba0b0d39fae1d2cb3d98fbee0aef6a9fed88 (patch)
tree5aa8285f50caa128cba09050678f7b6324615eb6 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3d5278b63862b337b8c7ef82ed18f1825e4b5c6b (diff)
Sort the result of SpannableStringBuilder.getSpans
SpannableStringBuilder used to return the result of getSpans in the order of start indices because of the interval tree it uses. However, style spans has to be applied in the order of insertion to get predictable results. Sorted the results of getSpans ordered first by priority flag and then by insertion time. Moreover improved the performance of SpannableStringInternal copy constructor. Bug: 26240132 Change-Id: I0b0fa7bb30a3bd9ca37dedca66d8993718586027
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions