mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 09:47:34 +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;
|
this.mId = id;
|
||||||
String cleanName;
|
String cleanName;
|
||||||
|
|
||||||
|
name = (("(name removed)".equals(name)) ? null : name);
|
||||||
|
|
||||||
ResResSpec resResSpec = type.getResSpecUnsafe(name);
|
ResResSpec resResSpec = type.getResSpecUnsafe(name);
|
||||||
if (resResSpec != null) {
|
if (resResSpec != null) {
|
||||||
cleanName = String.format("APKTOOL_DUPLICATE_%s_%s", type, id.toString());
|
cleanName = String.format("APKTOOL_DUPLICATE_%s_%s", type, id.toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user