mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 18:12:54 +01:00
Add attr resource type handling
This commit is contained in:
parent
1b91cec1f1
commit
2bc8feb549
@ -28,6 +28,7 @@ public final class ResTypeSpec {
|
||||
public static final String RES_TYPE_NAME_ARRAY = "array";
|
||||
public static final String RES_TYPE_NAME_PLURALS = "plurals";
|
||||
public static final String RES_TYPE_NAME_STYLES = "style";
|
||||
public static final String RES_TYPE_NAME_ATTR = "attr";
|
||||
|
||||
private final String mName;
|
||||
private final Map<String, ResResSpec> mResSpecs = new LinkedHashMap<String, ResResSpec>();
|
||||
|
@ -112,6 +112,10 @@ public class ResValueFactory {
|
||||
return new ResStyleValue(parentVal, items, this);
|
||||
}
|
||||
|
||||
if (ResTypeSpec.RES_TYPE_NAME_ATTR.equals(resTypeName)) {
|
||||
return new ResAttr(parentVal, 0, null, null, null);
|
||||
}
|
||||
|
||||
throw new AndrolibException("unsupported res type name for bags. Found: " + resTypeName);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user