From e7b294a3eae8e241be64b89061b0659b1396275f Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 10 Sep 2015 18:04:40 +0200 Subject: [PATCH] Fix flags being defined as references --- .../main/java/brut/androlib/res/data/value/ResFlagsAttr.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResFlagsAttr.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResFlagsAttr.java index e2795871..07f0ff37 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResFlagsAttr.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResFlagsAttr.java @@ -41,6 +41,9 @@ public class ResFlagsAttr extends ResAttr { @Override public String convertToResXmlFormat(ResScalarValue value) throws AndrolibException { + if(value instanceof ResReferenceValue) { + return value.encodeAsResXml(); + } if (!(value instanceof ResIntValue)) { return super.convertToResXmlFormat(value); }