]> git.saurik.com Git - android/aapt.git/blobdiff - Resource.cpp
Allow overlays to add resources.
[android/aapt.git] / Resource.cpp
index 41ee88b4451c1bc90162a62f4b5883262c32cd25..9d2ed1044b3eb30e4d57104dc165ee8aa9be342a 100644 (file)
@@ -475,10 +475,8 @@ static bool applyFileOverlay(const sp<AaptAssets>& assets,
                     }
                 } else {
                     // this group doesn't exist (a file that's only in the overlay)
-                    fprintf(stderr, "aapt: error: "
-                            "*** Resource file '%s' exists only in an overlay\n",
-                            overlaySet->keyAt(overlayIndex).string());
-                    return false;
+                    baseSet->add(overlaySet->keyAt(overlayIndex),
+                            overlaySet->valueAt(overlayIndex));
                 }
             }
             // this overlay didn't have resources for this type