mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 06:14:25 +02:00
[xml] encode unknown hex reference
This commit is contained in:
parent
7fe33a0b8f
commit
4e9cfd4100
@ -79,6 +79,10 @@
|
||||
}
|
||||
Matcher matcher = ValueDecoder.PATTERN_REFERENCE.matcher(refString);
|
||||
if(!matcher.find()){
|
||||
ValueDecoder.EncodeResult ref = ValueDecoder.encodeHexReference(refString);
|
||||
if(ref!=null){
|
||||
return ref.value;
|
||||
}
|
||||
throw new EncodeException(
|
||||
"Not proper reference string: '"+refString+"'");
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ class XMLValuesEncoderStyle extends XMLValuesEncoderBag{
|
||||
String name=child.getAttributeValue("name");
|
||||
int id=decodeUnknownAttributeHex(name);
|
||||
if(id!=0){
|
||||
item.setName(id);
|
||||
String value = child.getTextContent();
|
||||
if(ValueDecoder.isReference(value)){
|
||||
item.setTypeAndData(ValueType.REFERENCE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user