mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 06:14: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);
|
String uri= json.optString(NAME_namespace_uri, null);
|
||||||
if(uri!=null){
|
if(uri!=null){
|
||||||
ResXmlStartNamespace ns = getParentResXmlElement().getStartNamespaceByUri(uri);
|
ResXmlStartNamespace ns = getParentResXmlElement().getStartNamespaceByUri(uri);
|
||||||
|
if(ns==null){
|
||||||
|
ns = getParentResXmlElement().getRootResXmlElement()
|
||||||
|
.getOrCreateNamespace(uri, "");
|
||||||
|
}
|
||||||
setNamespaceReference(ns.getUriReference());
|
setNamespaceReference(ns.getUriReference());
|
||||||
}
|
}
|
||||||
ValueType valueType=ValueType.fromName(json.getString(NAME_value_type));
|
ValueType valueType=ValueType.fromName(json.getString(NAME_value_type));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user