diff options
author | 2024-07-26 16:21:49 -0700 | |
---|---|---|
committer | 2024-08-01 13:56:46 -0700 | |
commit | 16c83afa9b790d3fde434232771f6cb089291c44 (patch) | |
tree | bfa606a44b636dc4f7377a56cb3bd7fb5227f7ff /tools/aapt2/ResourceParser.cpp | |
parent | 14bf17871c511c73ffd71fe6718761121905cd58 (diff) |
Remove flag disabled strings from string pool
Test: Automated
Bug: 329436914
Flag: EXEMPT Aconfig not supported on host tools
Change-Id: I627feff5774f44a398a8337733498ede601d07a4
Diffstat (limited to 'tools/aapt2/ResourceParser.cpp')
-rw-r--r-- | tools/aapt2/ResourceParser.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/aapt2/ResourceParser.cpp b/tools/aapt2/ResourceParser.cpp index 9444dd968f5f..1c85e9ff231b 100644 --- a/tools/aapt2/ResourceParser.cpp +++ b/tools/aapt2/ResourceParser.cpp @@ -690,9 +690,7 @@ bool ResourceParser::ParseResource(xml::XmlPullParser* parser, resource_format = item_iter->second.format; } - // Don't bother parsing the item if it is behind a disabled flag - if (out_resource->flag_status != FlagStatus::Disabled && - !ParseItem(parser, out_resource, resource_format)) { + if (!ParseItem(parser, out_resource, resource_format)) { return false; } return true; |