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:
Ryszard Wiśniewski 2011-05-02 03:35:03 +02:00
parent d86909707b
commit e4acfb34a2

View File

@ -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);