From 61fcc4d32494a31500da3fbdc6d3ddeb12fdd05e Mon Sep 17 00:00:00 2001 From: Anthony Newnam Date: Wed, 1 Sep 2010 12:06:04 -0500 Subject: [PATCH] Avoid pre-processing images when they won't be used Change-Id: Iffa31228ca95a2e29ccc0aa81bda0fc66922d577 --- Resource.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Resource.cpp b/Resource.cpp index b00e276..7ffd43b 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) { -- 2.45.2