Skip to content

Commit

Permalink
[ARSC] Check compact entry from size
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Mar 26, 2024
1 parent b6417d9 commit fadcf65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/reandroid/arsc/value/ValueItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,10 @@ public void merge(ValueItem valueItem){
if(valueItem == null || valueItem==this){
return;
}
setSize(valueItem.getSize());
int size = valueItem.getSize();
if(size != 0){
setSize(valueItem.getSize());
}
ValueType coming = valueItem.getValueType();
if(coming == ValueType.STRING){
setValueAsString(valueItem.getValueAsString());
Expand Down

0 comments on commit fadcf65

Please sign in to comment.