From: Anthony Newnam Date: Wed, 1 Sep 2010 17:06:04 +0000 (-0500) Subject: Avoid pre-processing images when they won't be used X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/58d2e06a280b4f7b3535b16a57e2f0e659a56089 Avoid pre-processing images when they won't be used Change-Id: I24db3645c399f66dc7cc0e85909ce34b68ff829e --- diff --git a/Resource.cpp b/Resource.cpp index 9c5fcda..c8ba904 100644 --- a/Resource.cpp +++ b/Resource.cpp @@ -835,7 +835,9 @@ status_t buildResources(Bundle* bundle, const sp& assets) bool hasErrors = false; if (drawables != NULL) { - err = preProcessImages(bundle, assets, drawables); + if (bundle->getOutputAPKFile() != NULL) { + err = preProcessImages(bundle, assets, drawables); + } if (err == NO_ERROR) { err = makeFileResources(bundle, assets, &table, drawables, "drawable"); if (err != NO_ERROR) {