]> git.saurik.com Git - android/aapt.git/blobdiff - Resource.cpp
am 2107757d: am bbb5a5ce: Merge "Make AaptGroupEntry::getMncName accept mnc00"
[android/aapt.git] / 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) {