Skip to content

Commit

Permalink
leave zero-id-parent to hint compiler it is style
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Jul 20, 2023
1 parent 7f77894 commit 0721784
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/reandroid/arsc/coder/xml/XmlCoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ public void decodeParent(XmlSerializer serializer, Entry entry) throws IOExcepti
ResTableMapEntry mapEntry = entry.getResTableMapEntry();
String parent = mapEntry.decodeParentId();
if(parent == null){
if(mapEntry.childesCount() == 0){
serializer.attribute(null, "parent", "");
}
return;
}
serializer.attribute(null, "parent", parent);
Expand Down

0 comments on commit 0721784

Please sign in to comment.