Commit 5e81bd83 authored by Andreas Oberritter's avatar 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".
parent b921f609
...@@ -168,10 +168,7 @@ public class ManifestAttributes { ...@@ -168,10 +168,7 @@ public class ManifestAttributes {
return null; return null;
} }
if (attr.getType() == MAttrType.ENUM) { if (attr.getType() == MAttrType.ENUM) {
String name = attr.getValues().get(value); return attr.getValues().get(value);
if (name != null) {
return name;
}
} else if (attr.getType() == MAttrType.FLAG) { } else if (attr.getType() == MAttrType.FLAG) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (Map.Entry<Long, String> entry : attr.getValues().entrySet()) { for (Map.Entry<Long, String> entry : attr.getValues().entrySet()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment