diff options
author | Anthony Newnam <anthony.newnam@garmin.com> | 2010-09-01 12:06:04 -0500 |
---|---|---|
committer | Garmin Android technology group <android@garmin.com> | 2010-09-03 15:17:09 -0500 |
commit | 578a57fc6bba6d19e31e91961ef5a9e86b890e4b (patch) | |
tree | f56287c185424d57a6e94c667518e5edf785ac1b /tools/aapt/Resource.cpp | |
parent | bd6abed3c8c7c0215fd937d27f1eda1ee88d11a1 (diff) | |
download | frameworks_base-578a57fc6bba6d19e31e91961ef5a9e86b890e4b.zip frameworks_base-578a57fc6bba6d19e31e91961ef5a9e86b890e4b.tar.gz frameworks_base-578a57fc6bba6d19e31e91961ef5a9e86b890e4b.tar.bz2 |
Avoid pre-processing images when they won't be used
Change-Id: Iffa31228ca95a2e29ccc0aa81bda0fc66922d577
Diffstat (limited to 'tools/aapt/Resource.cpp')
-rw-r--r-- | tools/aapt/Resource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp index b00e276..7ffd43b 100644 --- a/tools/aapt/Resource.cpp +++ b/tools/aapt/Resource.cpp @@ -835,7 +835,9 @@ status_t buildResources(Bundle* bundle, const sp<AaptAssets>& 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) { |