diff options
author | 2020-11-14 03:22:09 +0000 | |
---|---|---|
committer | 2020-11-14 03:22:09 +0000 | |
commit | 18a3a6644df14e1b87aa231ceed779ed32c2c229 (patch) | |
tree | 4ee79bdbcb837322b48f73c27868d26aef50d303 /tools/aapt2/Debug.cpp | |
parent | f766eaccaaadfb1db12ac685367c20ffff8fa63e (diff) | |
parent | 55ef6167a2c235bd88c7216238b2001b46795b79 (diff) |
Merge changes from topic "revert-12787270-FYIHXORGZY"
* changes:
Revert "libandroidfw hardening for IncFs"
Revert "Cache resolved theme values"
Revert "Do not cache bag parent stack until requested"
Diffstat (limited to 'tools/aapt2/Debug.cpp')
-rw-r--r-- | tools/aapt2/Debug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/aapt2/Debug.cpp b/tools/aapt2/Debug.cpp index 82da24959521..439f231193df 100644 --- a/tools/aapt2/Debug.cpp +++ b/tools/aapt2/Debug.cpp @@ -436,9 +436,9 @@ void Debug::DumpResStringPool(const android::ResStringPool* pool, text::Printer* for (size_t i=0; i<N; i++) { size_t len; if (pool->isUTF8()) { - uniqueStrings.add(UnpackOptionalString(pool->string8At(i), &len)); + uniqueStrings.add(pool->string8At(i, &len)); } else { - uniqueStrings.add(UnpackOptionalString(pool->stringAt(i), &len)); + uniqueStrings.add(pool->stringAt(i, &len)); } } @@ -450,8 +450,8 @@ void Debug::DumpResStringPool(const android::ResStringPool* pool, text::Printer* const size_t NS = pool->size(); for (size_t s=0; s<NS; s++) { - auto str = pool->string8ObjectAt(s); - printer->Print(StringPrintf("String #%zd : %s\n", s, str.has_value() ? str->string() : "")); + String8 str = pool->string8ObjectAt(s); + printer->Print(StringPrintf("String #%zd : %s\n", s, str.string())); } } |