]> git.saurik.com Git - android/aapt.git/commitdiff
am fa888784: am 89fef418: Merge "Avoid pre-processing images when they won\'t be...
authorXavier Ducrohet <xav@android.com>
Fri, 10 Sep 2010 22:01:56 +0000 (15:01 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Fri, 10 Sep 2010 22:01:56 +0000 (15:01 -0700)
Merge commit 'fa8887848e2877dd96e853dfcd52086f1b66c26b'

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

Resource.cpp

index 01728a17477e1752280acf66ad6ebc613d2fcc5d..822262eda8bed411255ff816291d0cca9fd3ccc1 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) {