Commit a4a8b05e authored by tRuNKator's avatar tRuNKator Committed by skylot

fix: replace dot character with underscore in style resource name (PR #466)

parent 6116a750
......@@ -99,11 +99,17 @@ public class AndroidResourcesUtils {
}
}
for (ResourceEntry resource : resStorage.getResources()) {
final String resTypeName = resource.getTypeName();
ClassNode typeCls = innerClsMap.computeIfAbsent(
resource.getTypeName(),
resTypeName,
name -> addClassForResType(resCls, rClsExists, name)
);
String resName = resource.getKeyName();
final String resName;
if ("style".equals(resTypeName)) {
resName = resource.getKeyName().replace('.', '_');
} else {
resName = resource.getKeyName();
}
FieldNode rField = typeCls.searchFieldByName(resName);
if (rField == null) {
FieldInfo rFieldInfo = FieldInfo.from(typeCls.dex(), typeCls.getClassInfo(), resName, ArgType.INT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment