summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2017-03-31 18:28:14 -0700
committerAdam Lesinski <adamlesinski@google.com>2017-03-31 18:30:20 -0700
commit8049f3da712ea9c3154b57ce2276c97e749d1f2c (patch)
treecd4b22971ad876eb8421a7a5870da9e49d62c9f1 /tools/aapt2/diff/Diff.cpp
parent881a623e3522e3e4f0905b606ca5c77cf899b21c (diff)
AAPT2: Fix pseudolocalization (again)
Pseudolocalization didn't properly handle spans in strings like "<small><small>Hello</small></small>". The spans would be identical and when doing range checks only one of them would be updated. Switched to a more robust way of extracting the relevant chunks of a styled string. This uses a stack, which is more in line with the real representation in XML. Bug: 34088357 Test: make aapt2_tests Change-Id: Ia4e4501713e688c96a89e26e4e2b1384f4cd3889
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions