mirror of
https://github.com/revanced/Apktool.git
synced 2024-07-30 02:23:42 +02:00
fixed problem with <items> showing up in colors.xml
This commit is contained in:
parent
ac745599ed
commit
aa20036307
|
@ -70,11 +70,13 @@ public abstract class ResScalarValue extends ResValue implements
|
||||||
String body = encodeAsResXmlValue();
|
String body = encodeAsResXmlValue();
|
||||||
|
|
||||||
// check for resource reference
|
// check for resource reference
|
||||||
if (body.contains("@")) {
|
if (!type.equalsIgnoreCase("color")) {
|
||||||
if (!res.getFilePath().contains("string")) {
|
if (body.contains("@")) {
|
||||||
item = true;
|
if (!res.getFilePath().contains("string")) {
|
||||||
}
|
item = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// check for using attrib as node or item
|
// check for using attrib as node or item
|
||||||
String tagName = item ? "item" : type;
|
String tagName = item ? "item" : type;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="test_color1">#ff123456</color>
|
<color name="test_color1">#ff123456</color>
|
||||||
<item type="color" name="test_color2">@*android:color/white</item>
|
<color name="test_color2">@*android:color/white</color>
|
||||||
|
<color name="test_color3">#00000000</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user