]> git.saurik.com Git - android/aapt.git/blobdiff - ResourceTable.cpp
am 820caf7b: am 8821ba86: Ummm... f*, stop breaking the build.
[android/aapt.git] / ResourceTable.cpp
index e618877bd5de6d173adf9ec52ce5fdf961921d2c..f3ca23d9efaac8187b114648cb1d8683d1b27ca1 100644 (file)
@@ -3706,7 +3706,9 @@ sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package)
 {
     sp<Package> p = mPackages.valueFor(package);
     if (p == NULL) {
-        if (mIsAppPackage) {
+        if (mBundle->getIsOverlayPackage()) {
+            p = new Package(package, 0x00);
+        } else if (mIsAppPackage) {
             if (mHaveAppPackage) {
                 fprintf(stderr, "Adding multiple application package resources; only one is allowed.\n"
                                 "Use -x to create extended resources.\n");