summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yurii Zubrytskyi <zyy@google.com> 2021-10-21 16:04:40 -0700
committer Yurii Zubrytskyi <zyy@google.com> 2021-10-21 16:09:56 -0700
commitef4c88179b0de893b6fdd71568c49a130652118c (patch)
tree9e56fa77ca91b03b8bc4e9868fd8b36cb4f5f631
parent4adac9edc8f8d46415a5105d0fa0af19ad8f784b (diff)
[aapt2] Support ConfigVarying in CTS resources
Treat it as Stylable, same as XML parsing works Bug: 203821692 Test: aapt2 dump resources CtsContentTestCases.apk succeeds Change-Id: I836495743aea1a19af9ed273a6b33f15494b2e97
-rw-r--r--tools/aapt2/format/binary/BinaryResourceParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/aapt2/format/binary/BinaryResourceParser.cpp b/tools/aapt2/format/binary/BinaryResourceParser.cpp
index 72eaa3561a02..c1429bee0997 100644
--- a/tools/aapt2/format/binary/BinaryResourceParser.cpp
+++ b/tools/aapt2/format/binary/BinaryResourceParser.cpp
@@ -565,6 +565,8 @@ std::unique_ptr<Value> BinaryResourceParser::ParseMapEntry(const ResourceNameRef
const ResTable_map_entry* map) {
switch (name.type) {
case ResourceType::kStyle:
+ // fallthrough
+ case ResourceType::kConfigVarying: // legacy thing used in tests
return ParseStyle(name, config, map);
case ResourceType::kAttrPrivate:
// fallthrough