mirror of
https://github.com/revanced/Apktool.git
synced 2024-08-17 04:40:38 +02:00
Do not decode res-references as <item />.
So now they're decoded as e.g. <string name="test">@android:string/ok</string> instead of <item type="string" name="test">@android:string/ok</item>.
This commit is contained in:
parent
d86909707b
commit
e4acfb34a2
@ -37,7 +37,7 @@ public abstract class ResScalarValue extends ResValue
|
||||
public void serializeToXml(XmlSerializer serializer, ResResource res)
|
||||
throws IOException, AndrolibException {
|
||||
String type = res.getResSpec().getType().getName();
|
||||
boolean item = ! type.equals(mType);
|
||||
boolean item = ! "reference".equals(mType) && ! type.equals(mType);
|
||||
String tagName = item ? "item" : type;
|
||||
|
||||
serializer.startTag(null, tagName);
|
||||
|
Loading…
Reference in New Issue
Block a user