mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-29 22:04:25 +02:00
fix create name space for empty uri #12
This commit is contained in:
parent
b8fd031bc1
commit
01ffe761fe
@ -333,6 +333,10 @@
|
||||
String uri= json.optString(NAME_namespace_uri, null);
|
||||
if(uri!=null){
|
||||
ResXmlStartNamespace ns = getParentResXmlElement().getStartNamespaceByUri(uri);
|
||||
if(ns==null){
|
||||
ns = getParentResXmlElement().getRootResXmlElement()
|
||||
.getOrCreateNamespace(uri, "");
|
||||
}
|
||||
setNamespaceReference(ns.getUriReference());
|
||||
}
|
||||
ValueType valueType=ValueType.fromName(json.getString(NAME_value_type));
|
||||
|
Loading…
x
Reference in New Issue
Block a user