Skip to content

Commit

Permalink
Fixes Facebook apk deconstruction (#2884)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvildo committed Sep 19, 2022
1 parent 63a8d09 commit 5d6c6c0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ public ResBagValue bagFactory(int parent, Duo<Integer, ResScalarValue>[] items,
return new ResPluralsValue(parentVal, items);
}

if (ResTypeSpec.RES_TYPE_NAME_STYLES.equals(resTypeName)) {
return new ResStyleValue(parentVal, items, this);
}

if (ResTypeSpec.RES_TYPE_NAME_ATTR.equals(resTypeName)) {
return new ResAttr(parentVal, 0, null, null, null);
}

if (resTypeName.startsWith(ResTypeSpec.RES_TYPE_NAME_STYLES)) {
return new ResStyleValue(parentVal, items, this);
}

throw new AndrolibException("unsupported res type name for bags. Found: " + resTypeName);
}
Expand Down

0 comments on commit 5d6c6c0

Please sign in to comment.