fix(res): resolve all custom attributes (PR #1933)

This commit is contained in:
nitram84 2023-07-04 20:21:32 +02:00 committed by GitHub
parent 0efc99e43e
commit 36f439a82b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,9 +209,10 @@ public class ManifestAttributes {
if (ri.getTypeName().equals("attr") && ri.getNamedValues().size() > 1) {
RawNamedValue first = ri.getNamedValues().get(0);
MAttrType attrTyp;
if (first.getRawValue().getData() == ValuesParser.ATTR_TYPE_FLAGS) {
int attrTypeVal = first.getRawValue().getData() & 0xff0000;
if (attrTypeVal == ValuesParser.ATTR_TYPE_FLAGS) {
attrTyp = MAttrType.FLAG;
} else if (first.getRawValue().getData() == ValuesParser.ATTR_TYPE_ENUM || first.getRawValue().getData() == 65600) {
} else if (attrTypeVal == ValuesParser.ATTR_TYPE_ENUM) {
attrTyp = MAttrType.ENUM;
} else {
continue;