mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 22:34:24 +02:00
fix encode null value as empty string for non bag entries
This commit is contained in:
parent
a09e487afd
commit
9384cbe483
@ -74,7 +74,7 @@ class XMLValuesEncoder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
void encodeNullValue(Entry entry){
|
void encodeNullValue(Entry entry){
|
||||||
// Nothing to do
|
entry.setValueAsString("");
|
||||||
}
|
}
|
||||||
void encodeLiteralEmptyValue(Entry entry, String value){
|
void encodeLiteralEmptyValue(Entry entry, String value){
|
||||||
entry.setValueAsRaw(ValueType.NULL, 0);
|
entry.setValueAsRaw(ValueType.NULL, 0);
|
||||||
|
@ -44,4 +44,9 @@ class XMLValuesEncoderBag extends XMLValuesEncoder{
|
|||||||
int getChildesCount(XMLElement element){
|
int getChildesCount(XMLElement element){
|
||||||
return element.getChildesCount();
|
return element.getChildesCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
void encodeNullValue(Entry entry){
|
||||||
|
// Nothing to do
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user