mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
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:
parent
22f2e6fb23
commit
8749e2a6c4
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user