diff options
author | Ryan Mitchell <rtmitchell@google.com> | 2021-04-29 14:15:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-04-29 14:15:41 +0000 |
commit | 3ec445926ba8cb20295eb80e64939b017565ba51 (patch) | |
tree | bd35eb76c950078385ac25e1d806b6d2ffc46fb7 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | a78718ac81d41dfdc2159a0237810db95d32a2b8 (diff) | |
parent | 326e35ffaf0ee1e3d07c977217f4e600088fd9d5 (diff) |
Merge "Add <macro> tag to aapt2" into sc-dev
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
-rw-r--r-- | tools/aapt2/java/JavaClassGenerator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/aapt2/java/JavaClassGenerator.cpp b/tools/aapt2/java/JavaClassGenerator.cpp index e1e2e0135cf7..de6524dc7027 100644 --- a/tools/aapt2/java/JavaClassGenerator.cpp +++ b/tools/aapt2/java/JavaClassGenerator.cpp @@ -616,8 +616,9 @@ bool JavaClassGenerator::Generate(const StringPiece& package_name_to_generate, for (const auto& package : table_->packages) { for (const auto& type : package->types) { - if (type->type == ResourceType::kAttrPrivate) { - // We generate these as part of the kAttr type, so skip them here. + if (type->type == ResourceType::kAttrPrivate || type->type == ResourceType::kMacro) { + // We generate kAttrPrivate as part of the kAttr type, so skip them here. + // Macros are not actual resources, so skip them as well. continue; } |