diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-12-09 00:37:54 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-09 00:37:54 +0000 |
commit | c765655ae1ae35f9d5f0958295f0b71270132ca7 (patch) | |
tree | be4fb18aaaf1dc7f04f702f804a9c1b1f1da7987 /tools/aapt/Command.cpp | |
parent | 4b944f3ab8cd9959ccba3cee4cfd9fb36ab15a3a (diff) | |
parent | fbba9b57a35da49e592756ef86f98535280c0d09 (diff) |
am fbba9b57: Merge "AAPT: Dump status of required flag for uses-feature" into lmp-mr1-dev
* commit 'fbba9b57a35da49e592756ef86f98535280c0d09':
AAPT: Dump status of required flag for uses-feature
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); } } |