X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/d284bd5142dc1ae7ed2396a6cd0eefcaa2a65264..d2dcfc7bf6a2e67a3116016e5a2cab4fb5db5dcc:/Resource.cpp diff --git a/Resource.cpp b/Resource.cpp index 01728a1..822262e 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) {