Skip to content

Commit

Permalink
fix: support (name removed) res items. (#2940)
Browse files Browse the repository at this point in the history
* fix:  res/layout/(name removed).xml: Invalid file name: must contain only [a-zA-Z0-9$_.] error

* refactored fix
  • Loading branch information
Danealau committed Nov 17, 2022
1 parent 22f2e6f commit 8749e2a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public ResResSpec(ResID id, String name, ResPackage pkg, ResTypeSpec type) {
this.mId = id;
String cleanName;

name = (("(name removed)".equals(name)) ? null : name);

ResResSpec resResSpec = type.getResSpecUnsafe(name);
if (resResSpec != null) {
cleanName = String.format("APKTOOL_DUPLICATE_%s_%s", type, id.toString());
Expand Down

0 comments on commit 8749e2a

Please sign in to comment.