Fix aapt2 badging return codes

aapt2 was returning the inverse return code when duumping badging.

Bug: 129476626
Test: aapt2 dump badging [APK] && echo $?
Change-Id: Icd236e5fad3284c8bc4a0e2d7e9fb7cfb3262b6c
This commit is contained in:
Ryan Mitchell
2019-03-28 11:28:54 -07:00
parent f163c2111a
commit 28c88801e7

View File

@@ -2314,7 +2314,7 @@ std::unique_ptr<ManifestExtractor::Element> ManifestExtractor::Visit(xml::Elemen
int DumpManifest(LoadedApk* apk, DumpManifestOptions& options, text::Printer* printer,
IDiagnostics* diag) {
ManifestExtractor extractor(apk, options);
return extractor.Dump(printer, diag);
return extractor.Dump(printer, diag) ? 0 : 1;
}
} // namespace aapt