]> git.saurik.com Git - android/aapt.git/commitdiff
am 407f625a: Add new API to find out whether external storage is removable.
authorDianne Hackborn <hackbod@google.com>
Mon, 4 Oct 2010 21:03:06 +0000 (14:03 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Mon, 4 Oct 2010 21:03:06 +0000 (14:03 -0700)
Merge commit '407f625a9b8e356e765a5ec587c443af1f3aadb5' into gingerbread-plus-aosp

* commit '407f625a9b8e356e765a5ec587c443af1f3aadb5':
  Add new API to find out whether external storage is removable.

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) {