commit | 8049f3da712ea9c3154b57ce2276c97e749d1f2c | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Fri Mar 31 18:28:14 2017 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Fri Mar 31 18:30:20 2017 -0700 |
tree | cd4b22971ad876eb8421a7a5870da9e49d62c9f1 | |
parent | 881a623e3522e3e4f0905b606ca5c77cf899b21c [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