diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-12-09 00:31:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-12-09 00:31:59 +0000 |
commit | fbba9b57a35da49e592756ef86f98535280c0d09 (patch) | |
tree | f2a5965a4c52d1d6f54926dd77ac75a7bde9f0f1 /tools/aapt/Command.cpp | |
parent | 7781647aa90d7d7a070ecd79e52c2d8a11b59b5c (diff) | |
parent | 73a05114b051c6dcf5e5126ac94eaf8cac0ab289 (diff) |
Merge "AAPT: Dump status of required flag for uses-feature" into lmp-mr1-dev
Diffstat (limited to 'tools/aapt/Command.cpp')
-rw-r--r-- | tools/aapt/Command.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index f5f70c5cf2ed..d23b82e50ecc 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -516,12 +516,10 @@ static void printFeatureGroup(const FeatureGroup& grp, const size_t numFeatures = grp.features.size(); for (size_t i = 0; i < numFeatures; i++) { - if (!grp.features[i]) { - continue; - } + const bool required = grp.features[i]; const String8& featureName = grp.features.keyAt(i); - printf(" uses-feature: name='%s'\n", + printf(" uses-feature%s: name='%s'\n", (required ? "" : "-not-required"), ResTable::normalizeForOutput(featureName.string()).string()); } @@ -1844,7 +1842,7 @@ int doDump(Bundle* bundle) } } - if (!grp.features.isEmpty()) { + if (!grp.features.isEmpty()) { printFeatureGroup(grp); } } |