diff --git a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java index de8270e9..84636fa3 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java +++ b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java @@ -64,7 +64,7 @@ public abstract class ResScalarValue extends ResValue serializeExtraXmlAttrs(serializer, res); - String body = serializeXmlBody(serializer, res); + String body = encodeAsResXmlValue(); if (! body.isEmpty()) { serializer.ignorableWhitespace(body); } @@ -76,11 +76,6 @@ public abstract class ResScalarValue extends ResValue return mType; } - protected String serializeXmlBody(XmlSerializer serializer, - ResResource res) throws IOException, AndrolibException { - return encodeAsResXmlValue(); - } - protected void serializeExtraXmlAttrs(XmlSerializer serializer, ResResource res) throws IOException { } diff --git a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResStringValue.java b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResStringValue.java index 0e5db398..e60e0e02 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResStringValue.java +++ b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResStringValue.java @@ -51,12 +51,6 @@ public class ResStringValue extends ResScalarValue { throw new UnsupportedOperationException(); } - @Override - protected String serializeXmlBody(XmlSerializer serializer, ResResource res) - throws IOException, AndrolibException { - return ResXmlEncoders.encodeAsXmlValue(mRawValue); - } - @Override protected void serializeExtraXmlAttrs(XmlSerializer serializer, ResResource res) throws IOException {