]> git.saurik.com Git - android/aapt.git/blobdiff - ResourceTable.cpp
resolved conflicts for merge of 77fc8b80 to master
[android/aapt.git] / ResourceTable.cpp
index d98b285dd1e3c8be7b16d92886f0704559fc51ca..81b924af8d7e58192105549e397fc6a11b69d63d 100644 (file)
@@ -3706,7 +3706,9 @@ sp<ResourceTable::Package> ResourceTable::getPackage(const String16& package)
 {
     sp<Package> p = mPackages.valueFor(package);
     if (p == NULL) {
 {
     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");
             if (mHaveAppPackage) {
                 fprintf(stderr, "Adding multiple application package resources; only one is allowed.\n"
                                 "Use -x to create extended resources.\n");