AAPT2: fixing the -c flag being ignored
Bug: 36999175
Test: manual
Change-Id: Id9a4a00a3b37bc088d86df7c75bbe711536b980f
diff --git a/tools/aapt2/link/Link.cpp b/tools/aapt2/link/Link.cpp
index a33fd06..407eb52 100644
--- a/tools/aapt2/link/Link.cpp
+++ b/tools/aapt2/link/Link.cpp
@@ -2151,7 +2151,7 @@
}
AxisConfigFilter filter;
- if (configs.empty()) {
+ if (!configs.empty()) {
for (const std::string& config_arg : configs) {
for (const StringPiece& config_str : util::Tokenize(config_arg, ',')) {
ConfigDescription config;