mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-01 22:54:26 +02:00
fix attribute/reference encoding
This commit is contained in:
parent
fe3fd1b6c0
commit
1b9ed9c291
@ -106,7 +106,11 @@ public class XMLFileEncoder {
|
|||||||
String valueText=attribute.getValue();
|
String valueText=attribute.getValue();
|
||||||
|
|
||||||
if(ValueDecoder.isReference(valueText)){
|
if(ValueDecoder.isReference(valueText)){
|
||||||
xmlAttribute.setValueType(ValueType.REFERENCE);
|
if(valueText.startsWith("?")){
|
||||||
|
xmlAttribute.setValueType(ValueType.ATTRIBUTE);
|
||||||
|
}else {
|
||||||
|
xmlAttribute.setValueType(ValueType.REFERENCE);
|
||||||
|
}
|
||||||
xmlAttribute.setRawValue(materials.resolveReference(valueText));
|
xmlAttribute.setRawValue(materials.resolveReference(valueText));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user