mirror of
https://github.com/revanced/Apktool.git
synced 2024-08-28 18:16:41 +02:00
ResStringValue: added possibility to set type name.
This commit is contained in:
parent
1441587bd7
commit
1d4d4e341c
@ -27,7 +27,11 @@ public class ResStringValue extends ResScalarValue
|
||||
private final String mValue;
|
||||
|
||||
public ResStringValue(String value) {
|
||||
super("string");
|
||||
this(value, "string");
|
||||
}
|
||||
|
||||
public ResStringValue(String value, String type) {
|
||||
super(type);
|
||||
this.mValue = value;
|
||||
}
|
||||
|
||||
|
@ -19,8 +19,6 @@ package brut.androlib.res.data.value;
|
||||
|
||||
import brut.androlib.AndrolibException;
|
||||
import brut.androlib.res.data.ResPackage;
|
||||
import brut.androlib.res.data.ResTable;
|
||||
import brut.androlib.res.data.ResType;
|
||||
import brut.androlib.res.jni.JniBagItem;
|
||||
import brut.androlib.res.jni.JniEntry;
|
||||
import java.util.LinkedHashMap;
|
||||
@ -103,8 +101,9 @@ public class ResValueFactory {
|
||||
return new ResFileValue(entry.strVal);
|
||||
}
|
||||
case TYPE_DIMENSION:
|
||||
return new ResStringValue(entry.strVal, "dimen");
|
||||
case TYPE_FRACTION:
|
||||
return new ResStringValue(entry.strVal);
|
||||
return new ResStringValue(entry.strVal, "fraction");
|
||||
}
|
||||
throw new AndrolibException(String.format(
|
||||
"Unknown value type for %s/%s: ",
|
||||
|
Loading…
Reference in New Issue
Block a user