AAPT: Fix feature split generation of ID resources am: 4d219da3c4
am: e69f9ca938
Change-Id: I2021dbffcd9e6fb8bca79c181d2bf8e8524ee5d2
This commit is contained in:
@@ -2623,6 +2623,14 @@ status_t ResourceTable::assignResourceIds()
|
|||||||
const SourcePos unknown(String8("????"), 0);
|
const SourcePos unknown(String8("????"), 0);
|
||||||
sp<Type> attr = p->getType(String16("attr"), unknown);
|
sp<Type> attr = p->getType(String16("attr"), unknown);
|
||||||
|
|
||||||
|
// Force creation of ID if we are building feature splits.
|
||||||
|
// Auto-generated ID resources won't apply the type ID offset correctly unless
|
||||||
|
// the offset is applied here first.
|
||||||
|
// b/30607637
|
||||||
|
if (mPackageType == AppFeature && p->getName() == mAssetsPackage) {
|
||||||
|
sp<Type> id = p->getType(String16("id"), unknown);
|
||||||
|
}
|
||||||
|
|
||||||
// Assign indices...
|
// Assign indices...
|
||||||
const size_t typeCount = p->getOrderedTypes().size();
|
const size_t typeCount = p->getOrderedTypes().size();
|
||||||
for (size_t ti = 0; ti < typeCount; ti++) {
|
for (size_t ti = 0; ti < typeCount; ti++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user