mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-18 10:29:26 +01:00
parent
76a940628f
commit
3dea579f66
@ -59,7 +59,7 @@ public class ResStyleValue extends ResBagValue implements
|
|||||||
// hacky-fix remove bad ReferenceVars
|
// hacky-fix remove bad ReferenceVars
|
||||||
if (resource.contains("ResReferenceValue@")) {
|
if (resource.contains("ResReferenceValue@")) {
|
||||||
continue;
|
continue;
|
||||||
} else if (resource.contains("ResStringValue@")) {
|
} else if (resource.contains("ResStringValue@") || resource.contains("ResStyleValue@")) {
|
||||||
name = "@" + spec.getFullName(res.getResSpec().getPackage(), false);
|
name = "@" + spec.getFullName(res.getResSpec().getPackage(), false);
|
||||||
} else {
|
} else {
|
||||||
ResAttr attr = (ResAttr) spec.getDefaultResource().getValue();
|
ResAttr attr = (ResAttr) spec.getDefaultResource().getValue();
|
||||||
|
@ -39,7 +39,7 @@ public class ResAttrDecoder {
|
|||||||
.getResSpec(attrResId).getDefaultResource().getValue();
|
.getResSpec(attrResId).getDefaultResource().getValue();
|
||||||
|
|
||||||
decoded = attr.convertToResXmlFormat(resValue);
|
decoded = attr.convertToResXmlFormat(resValue);
|
||||||
} catch (UndefinedResObject ex) {
|
} catch (UndefinedResObject | ClassCastException ex) {
|
||||||
// ignored
|
// ignored
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user