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
|
||||
public String getNamespacePrefix(int pos) throws XmlPullParserException {
|
||||
ResXmlAttribute attribute = getResXmlAttributeAt(pos);
|
||||
if(attribute!=null){
|
||||
return attribute.getNamePrefix();
|
||||
ResXmlElement element = getCurrentElement();
|
||||
if(element!=null){
|
||||
return element.getStartNamespaceList().get(pos).getPrefix();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public String getNamespaceUri(int pos) throws XmlPullParserException {
|
||||
ResXmlAttribute attribute = getResXmlAttributeAt(pos);
|
||||
if(attribute!=null){
|
||||
return attribute.getUri();
|
||||
ResXmlElement element = getCurrentElement();
|
||||
if(element!=null){
|
||||
return element.getStartNamespaceList().get(pos).getUri();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user