Add <staging-public-group-final> to aapt2 (2/2)
Fixes BinaryResourceParser loading of alias chunk and makes changes
that did not get committed in 2fedba9a32.
Bug: 183411356
Test: aapt2_test
Change-Id: Ieff9166100019f38ddcfe900014709b15db24e43
This commit is contained in:
@@ -255,7 +255,7 @@ bool BinaryResourceParser::ParsePackage(const ResChunk_header* chunk) {
|
||||
break;
|
||||
|
||||
case android::RES_TABLE_STAGED_ALIAS_TYPE:
|
||||
if (!ParseOverlayable(parser.chunk())) {
|
||||
if (!ParseStagedAliases(parser.chunk())) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
@@ -518,7 +518,7 @@ bool BinaryResourceParser::ParseStagedAliases(const ResChunk_header* chunk) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set the staged if of the finalized resource.
|
||||
// Set the staged id of the finalized resource.
|
||||
const auto& resource_name = iter->second;
|
||||
const StagedId staged_id_def{.id = staged_id};
|
||||
if (!table_->AddResource(NewResourceBuilder(resource_name)
|
||||
|
||||
Reference in New Issue
Block a user