From ef4c88179b0de893b6fdd71568c49a130652118c Mon Sep 17 00:00:00 2001 From: Yurii Zubrytskyi Date: Thu, 21 Oct 2021 16:04:40 -0700 Subject: [PATCH] [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 --- tools/aapt2/format/binary/BinaryResourceParser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/aapt2/format/binary/BinaryResourceParser.cpp b/tools/aapt2/format/binary/BinaryResourceParser.cpp index 72eaa3561a023..c1429bee09972 100644 --- a/tools/aapt2/format/binary/BinaryResourceParser.cpp +++ b/tools/aapt2/format/binary/BinaryResourceParser.cpp @@ -565,6 +565,8 @@ std::unique_ptr 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