]> git.saurik.com Git - android/aapt.git/commitdiff
am 89fef418: Merge "Avoid pre-processing images when they won\'t be used"
authorXavier Ducrohet <xav@android.com>
Fri, 10 Sep 2010 20:03:43 +0000 (13:03 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Fri, 10 Sep 2010 20:03:43 +0000 (13:03 -0700)
Merge commit '89fef4183a3c58aebbbf66e894bbdc1ae9f634e9' into gingerbread-plus-aosp

* commit '89fef4183a3c58aebbbf66e894bbdc1ae9f634e9':
  Avoid pre-processing images when they won't be used

Resource.cpp

index 9c5fcda2bcf0dd5aa3484bcfd4cffc66addad881..c8ba9048f8670a0dcd723c14e7567d0341939883 100644 (file)
@@ -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) {