]> git.saurik.com Git - android/aapt.git/commitdiff
Merge "Support changing style parent in overlays"
authorJean-Baptiste Queru <jbq@google.com>
Thu, 4 Nov 2010 14:26:37 +0000 (07:26 -0700)
committerAndroid Code Review <code-review@android.com>
Thu, 4 Nov 2010 14:26:37 +0000 (07:26 -0700)
ResourceTable.cpp

index a2f085a02b878db6897a9f62581c74d51428bd70..82c143d335878c4725eed33a85abf77fb70632c1 100644 (file)
@@ -1629,13 +1629,6 @@ status_t ResourceTable::startBag(const SourcePos& sourcePos,
     
     // If a parent is explicitly specified, set it.
     if (bagParent.size() > 0) {
-        String16 curPar = e->getParent();
-        if (curPar.size() > 0 && curPar != bagParent) {
-            sourcePos.error("Conflicting parents specified, was '%s', now '%s'\n",
-                            String8(e->getParent()).string(),
-                            String8(bagParent).string());
-            return UNKNOWN_ERROR;
-        }
         e->setParent(bagParent);
     }
 
@@ -1683,13 +1676,6 @@ status_t ResourceTable::addBag(const SourcePos& sourcePos,
 
     // If a parent is explicitly specified, set it.
     if (bagParent.size() > 0) {
-        String16 curPar = e->getParent();
-        if (curPar.size() > 0 && curPar != bagParent) {
-            sourcePos.error("Conflicting parents specified, was '%s', now '%s'\n",
-                    String8(e->getParent()).string(),
-                    String8(bagParent).string());
-            return UNKNOWN_ERROR;
-        }
         e->setParent(bagParent);
     }