fix: rename duplicate attributes to not start with numeric

This commit is contained in:
Connor Tumbleson 2020-12-01 06:21:27 -05:00 committed by Connor Tumbleson
parent 1452014992
commit 6d4e503b16

View File

@ -37,7 +37,7 @@ public class ResResSpec {
ResResSpec resResSpec = type.getResSpecUnsafe(name);
if (resResSpec != null) {
cleanName = name + "_APKTOOL_DUPLICATENAME_" + id.toString();
cleanName = String.format("APKTOOL_DUPLICATE_%s_%s", type.toString(), id.toString());
} else {
cleanName = ((name == null || name.isEmpty()) ? ("APKTOOL_DUMMYVAL_" + id.toString()) : name);
}