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

Commit 0a226d84 authored by Anthony Newnam's avatar Anthony Newnam Committed by Xavier Ducrohet
Browse files

Avoid pre-processing images when they won't be used

Change-Id: I24db3645c399f66dc7cc0e85909ce34b68ff829e
parent 70f1a3b8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -835,7 +835,9 @@ status_t buildResources(Bundle* bundle, const sp<AaptAssets>& assets)
    bool hasErrors = false;

    if (drawables != NULL) {
        if (bundle->getOutputAPKFile() != NULL) {
            err = preProcessImages(bundle, assets, drawables);
        }
        if (err == NO_ERROR) {
            err = makeFileResources(bundle, assets, &table, drawables, "drawable");
            if (err != NO_ERROR) {