Unverified Commit 8e418d44 authored by skylot's avatar skylot Committed by GitHub

Merge pull request #206 from mtdcr/master

Decode attributes which may contain either enums or values
parents b921f609 5e81bd83
......@@ -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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment