Skip to content

Commit 5580e44

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "Support changing style parent in overlays"
2 parents db2403f + 2fda9f4 commit 5580e44

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tools/aapt/ResourceTable.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,13 +1629,6 @@ status_t ResourceTable::startBag(const SourcePos& sourcePos,
16291629

16301630
// If a parent is explicitly specified, set it.
16311631
if (bagParent.size() > 0) {
1632-
String16 curPar = e->getParent();
1633-
if (curPar.size() > 0 && curPar != bagParent) {
1634-
sourcePos.error("Conflicting parents specified, was '%s', now '%s'\n",
1635-
String8(e->getParent()).string(),
1636-
String8(bagParent).string());
1637-
return UNKNOWN_ERROR;
1638-
}
16391632
e->setParent(bagParent);
16401633
}
16411634

@@ -1683,13 +1676,6 @@ status_t ResourceTable::addBag(const SourcePos& sourcePos,
16831676

16841677
// If a parent is explicitly specified, set it.
16851678
if (bagParent.size() > 0) {
1686-
String16 curPar = e->getParent();
1687-
if (curPar.size() > 0 && curPar != bagParent) {
1688-
sourcePos.error("Conflicting parents specified, was '%s', now '%s'\n",
1689-
String8(e->getParent()).string(),
1690-
String8(bagParent).string());
1691-
return UNKNOWN_ERROR;
1692-
}
16931679
e->setParent(bagParent);
16941680
}
16951681

0 commit comments

Comments
 (0)