am f2d2c871: AAPT should not process XML that failed to compile
* commit 'f2d2c871813656012420faa89080d8e3cda1f308': AAPT should not process XML that failed to compile
This commit is contained in:
@@ -1236,12 +1236,13 @@ status_t buildResources(Bundle* bundle, const sp<AaptAssets>& assets)
|
|||||||
while ((err=it.next()) == NO_ERROR) {
|
while ((err=it.next()) == NO_ERROR) {
|
||||||
String8 src = it.getFile()->getPrintableSource();
|
String8 src = it.getFile()->getPrintableSource();
|
||||||
err = compileXmlFile(assets, it.getFile(), &table, xmlFlags);
|
err = compileXmlFile(assets, it.getFile(), &table, xmlFlags);
|
||||||
if (err != NO_ERROR) {
|
if (err == NO_ERROR) {
|
||||||
hasErrors = true;
|
|
||||||
}
|
|
||||||
ResXMLTree block;
|
ResXMLTree block;
|
||||||
block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true);
|
block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true);
|
||||||
checkForIds(src, block);
|
checkForIds(src, block);
|
||||||
|
} else {
|
||||||
|
hasErrors = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err < NO_ERROR) {
|
if (err < NO_ERROR) {
|
||||||
|
|||||||
Reference in New Issue
Block a user