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

android:layout_width="UNKNOWN_DATA_0x6401" becomes android:layout_width="100dp".
This commit is contained in:
Andreas Oberritter
2018-01-13 16:27:57 +01:00
parent b921f6097d
commit 5e81bd833b
@@ -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()) {