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

Commit 4e1658af authored by Xavier Ducrohet's avatar Xavier Ducrohet Committed by Android (Google) Code Review
Browse files

Merge "Avoid pre-processing images when they won't be used" into gingerbread

parents 1e6a3a53 0a226d84
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -835,7 +835,9 @@ status_t buildResources(Bundle* bundle, const sp<AaptAssets>& assets)
    bool hasErrors = false;
    bool hasErrors = false;


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