Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34dd2cdd authored by Adam Lesinski's avatar Adam Lesinski Committed by Android Git Automerger
Browse files

am f2d2c871: AAPT should not process XML that failed to compile

* commit 'f2d2c871':
  AAPT should not process XML that failed to compile
parents e88097bd f2d2c871
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1236,12 +1236,13 @@ status_t buildResources(Bundle* bundle, const sp<AaptAssets>& assets)
        while ((err=it.next()) == NO_ERROR) {
            String8 src = it.getFile()->getPrintableSource();
            err = compileXmlFile(assets, it.getFile(), &table, xmlFlags);
            if (err != NO_ERROR) {
                hasErrors = true;
            }
            if (err == NO_ERROR) {
                ResXMLTree block;
                block.setTo(it.getFile()->getData(), it.getFile()->getSize(), true);
                checkForIds(src, block);
            } else {
                hasErrors = true;
            }
        }

        if (err < NO_ERROR) {