]> git.saurik.com Git - android/aapt.git/blobdiff - Command.cpp
android-2.1_r1 snapshot
[android/aapt.git] / Command.cpp
index 1a536d6a80853aa5315ec4baedf3a3faa96724ec..0ef5d555dff354b799ab68cdc97936d05ef9db85 100644 (file)
@@ -1151,7 +1151,12 @@ int doPackage(Bundle* bundle)
 
     // Write out R.java constants
     if (assets->getPackage() == assets->getSymbolsPrivatePackage()) {
-        err = writeResourceSymbols(bundle, assets, assets->getPackage(), true);
+        if (bundle->getCustomPackage() == NULL) {
+            err = writeResourceSymbols(bundle, assets, assets->getPackage(), true);
+        } else {
+            const String8 customPkg(bundle->getCustomPackage());
+            err = writeResourceSymbols(bundle, assets, customPkg, true);
+        }
         if (err < 0) {
             goto bail;
         }