提交 5e81bd83 编写于 作者: A Andreas Oberritter

Decode attributes which may contain either enums or values, e.g. layout_width

android:layout_width="UNKNOWN_DATA_0x6401" becomes android:layout_width="100dp".
上级 b921f609
......@@ -168,10 +168,7 @@ public class ManifestAttributes {
return null;
}
if (attr.getType() == MAttrType.ENUM) {
String name = attr.getValues().get(value);
if (name != null) {
return name;
}
return attr.getValues().get(value);
} else if (attr.getType() == MAttrType.FLAG) {
StringBuilder sb = new StringBuilder();
for (Map.Entry<Long, String> entry : attr.getValues().entrySet()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册