diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResReferenceValue.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResReferenceValue.java index d626e039..22837ede 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResReferenceValue.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResReferenceValue.java @@ -48,11 +48,10 @@ public class ResReferenceValue extends ResIntValue { spec.hasDefaultResource() && spec.getDefaultResource().getValue() instanceof ResIdValue; - /* generate the beginning to fix @android */ + // generate the beginning to fix @android String mStart = (mTheme ? '?' : '@') + (newId ? "+" : ""); - // mStart = mStart.replace("@android", "@*android"); + //mStart = mStart.replace("@android", "@*android"); - /* now dump back */ return mStart + spec.getFullName(mPackage, mTheme && spec.getType().getName().equals("attr")); diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java index 9569d88d..98424ae3 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java @@ -94,15 +94,14 @@ public abstract class ResScalarValue extends ResValue String body = encodeAsResXmlValue(); - - /* check for resource reference */ + // check for resource reference if (body.contains("@")){ 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; serializer.startTag(null, tagName);