mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-29 22:04:25 +02:00
correction on getNamespace parser
This commit is contained in:
parent
fe0ec339ff
commit
9d0a62444c
@ -379,17 +379,17 @@ public class ResXmlPullParser implements XmlResourceParser {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getNamespacePrefix(int pos) throws XmlPullParserException {
|
public String getNamespacePrefix(int pos) throws XmlPullParserException {
|
||||||
ResXmlAttribute attribute = getResXmlAttributeAt(pos);
|
ResXmlElement element = getCurrentElement();
|
||||||
if(attribute!=null){
|
if(element!=null){
|
||||||
return attribute.getNamePrefix();
|
return element.getStartNamespaceList().get(pos).getPrefix();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getNamespaceUri(int pos) throws XmlPullParserException {
|
public String getNamespaceUri(int pos) throws XmlPullParserException {
|
||||||
ResXmlAttribute attribute = getResXmlAttributeAt(pos);
|
ResXmlElement element = getCurrentElement();
|
||||||
if(attribute!=null){
|
if(element!=null){
|
||||||
return attribute.getUri();
|
return element.getStartNamespaceList().get(pos).getUri();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user