Merge pull request #206 from mtdcr/master

Decode attributes which may contain either enums or values
This commit is contained in:
skylot
2018-01-16 15:58:19 +03:00
committed by GitHub
@@ -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()) {