fix: support (name removed) res items. (#2940)

* fix:  res/layout/(name removed).xml: Invalid file name: must contain only [a-zA-Z0-9$_.] error

* refactored fix
This commit is contained in:
Danealau 2022-11-17 03:52:55 +03:00 committed by GitHub
parent 22f2e6fb23
commit 8749e2a6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,8 @@ public class ResResSpec {
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());