diff options
author | 2024-07-02 15:31:01 -0700 | |
---|---|---|
committer | 2024-07-03 03:15:36 +0000 | |
commit | 97f0f1e4ea9232e86ee839d5d9e5e6d029f3700c (patch) | |
tree | 4c779d7f7b1ad32087a2cc558f2418fda94a6a26 /libs/androidfw/StringPool.cpp | |
parent | 92a51cacc06ada68e9a54a165d104bc32efcff77 (diff) |
[aapt2] Improve dump chunks for string pools, fix diff
- `dump chunks` command now prints extra header data for the
string pool, and outputs all style information for styled
strings.
- `diff` command used to only correctly compare the first span
in the StyledString data type, making them appear different
if there was a string with more than one span
Flag: EXEMPT bugfix
Test: atest aapt2_tests
Change-Id: I377718c03d6a464cb4db22399b0f067e6a6e04d6
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
-rw-r--r-- | libs/androidfw/StringPool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/androidfw/StringPool.cpp b/libs/androidfw/StringPool.cpp index 1cb8df311c89..ad445c042e63 100644 --- a/libs/androidfw/StringPool.cpp +++ b/libs/androidfw/StringPool.cpp @@ -132,7 +132,7 @@ bool StringPool::StyleRef::operator==(const StyleRef& rhs) const { auto rhs_iter = rhs.entry_->spans.begin(); for (const Span& span : entry_->spans) { - const Span& rhs_span = *rhs_iter; + const Span& rhs_span = *rhs_iter++; if (span.first_char != rhs_span.first_char || span.last_char != rhs_span.last_char || span.name != rhs_span.name) { return false; |