mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 22:34:24 +02:00
remove namespace from no-resource-id attributes
This commit is contained in:
parent
8937e3cb91
commit
c519b9f581
@ -44,6 +44,7 @@ public class XMLNamespaceValidator {
|
|||||||
private void validate(ResXmlAttribute attribute){
|
private void validate(ResXmlAttribute attribute){
|
||||||
int resourceId=attribute.getNameResourceID();
|
int resourceId=attribute.getNameResourceID();
|
||||||
if(resourceId==0){
|
if(resourceId==0){
|
||||||
|
removeNamespace(attribute);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int pkgId=toPackageId(resourceId);
|
int pkgId=toPackageId(resourceId);
|
||||||
@ -53,6 +54,9 @@ public class XMLNamespaceValidator {
|
|||||||
setAppNamespace(attribute);
|
setAppNamespace(attribute);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private void removeNamespace(ResXmlAttribute attribute){
|
||||||
|
attribute.setNamespaceReference(-1);
|
||||||
|
}
|
||||||
private void setAppNamespace(ResXmlAttribute attribute){
|
private void setAppNamespace(ResXmlAttribute attribute){
|
||||||
if(isValidAppNamespace(attribute)){
|
if(isValidAppNamespace(attribute)){
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user