From 30add278d5fd589e222d02784ce303cdf445317d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Mon, 9 May 2011 11:19:00 +0200 Subject: [PATCH] ResScalarValue::encodeAsResXml*() : use raw value if there is one. --- .../java/brut/androlib/res/data/value/ResScalarValue.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 073eef65..32d7b104 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 @@ -36,10 +36,16 @@ public abstract class ResScalarValue extends ResValue } public String encodeAsResXmlAttr() throws AndrolibException { + if (mRawValue != null) { + return mRawValue; + } return encodeAsResXml(); } public String encodeAsResXmlValue() throws AndrolibException { + if (mRawValue != null) { + return mRawValue; + } return encodeAsResXml(); }