summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSiyamed Sinir <siyamed@google.com>2017-12-18 18:47:37 -0800
committerSiyamed Sinir <siyamed@google.com>2017-12-18 23:32:50 -0800
commit50b585e20ce33aa795983ecc663cc444164479ce (patch)
treeddab99ce6de4cb9e535bbc1403688533cf54eb29 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent866a3836aec17031459f0dc269ad8d37e9964a88 (diff)
Fix DynamicLayout block index calculation after edit
DynamicLayout made wrong adjustments to the block indices set to be redrawn. Every indice after the first change was being added the diff count in the blocks. However this meant when there are 2 deletes and an index as 1, it would become -1 (wrong array index). The change should be applied to indices outside of [firstBlock, lastBlock]. Test: Added android.text.DynamicLayoutTest#testReflow_afterSpannableEdit Test: bit FrameworksCoreTests:android.text.DynamicLayoutTest Test: bit FrameworksCoreTests:android.text.DynamicLayoutBlocksTest Test: bit CtsTextTestCases:android.text.cts.DynamicLayoutTest Bug: 67405337 Change-Id: Ie5e5658ffca4293f32f7b574d22d307e9e8d52dc
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions