mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
add support for TYPE_DYNAMIC_ATTRIBUTE
This commit is contained in:
parent
7801a4bbf2
commit
bdfc28c20f
@ -56,6 +56,11 @@ public class TypedValue {
|
||||
* resolved before it can be used like TYPE_REFERENCE
|
||||
*/
|
||||
public static final int TYPE_DYNAMIC_REFERENCE = 0x07;
|
||||
/**
|
||||
* The <var>data</var> an attribute resource identifier, which needs to be resolved
|
||||
* before it can be used like a TYPE_ATTRIBUTE.
|
||||
*/
|
||||
public static final int TYPE_DYNAMIC_ATTRIBUTE = 0x08;
|
||||
/**
|
||||
* Identifies the start of plain integer values. Any type value from this to
|
||||
* {@link #TYPE_LAST_INT} means the <var>data</var> field holds a generic
|
||||
|
@ -55,6 +55,7 @@ public class ResValueFactory {
|
||||
case TypedValue.TYPE_INT_BOOLEAN:
|
||||
return new ResBoolValue(value != 0, value, rawValue);
|
||||
case TypedValue.TYPE_DYNAMIC_REFERENCE:
|
||||
case TypedValue.TYPE_DYNAMIC_ATTRIBUTE:
|
||||
return newReference(value, rawValue);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user