Skip to content

Commit

Permalink
fix: decode zero indexed array as style #58 #47
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Aug 22, 2023
1 parent 58a5c79 commit a52d8fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/com/reandroid/arsc/coder/xml/XmlCoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,11 @@ public int decodeStyle(XmlSerializer serializer, Entry entry) throws IOException
continue;
}
startTag(serializer, TAG_item);
serializer.attribute(null, ATTR_name,
valueMap.decodeName(true));
String name = valueMap.decodeName(true);
if(name == null){
name = ValueCoder.decodeUnknownNameId(valueMap.getNameResourceID());
}
serializer.attribute(null, ATTR_name, name);
valueMap.serializeText(serializer);
endTag(serializer, TAG_item);
childCount ++;
Expand Down

0 comments on commit a52d8fd

Please sign in to comment.