未验证 提交 b6657351 编写于 作者: J Jan S 提交者: GitHub

fix(res): fix XML attribute decoding (#1156) (PR #1157)

上级 f26032ed
......@@ -173,10 +173,11 @@ public class ManifestAttributes {
} else if (attr.getType() == MAttrType.FLAG) {
StringBuilder sb = new StringBuilder();
for (Map.Entry<Long, String> entry : attr.getValues().entrySet()) {
if (value == entry.getKey()) {
long key = entry.getKey();
if (value == key) {
sb = new StringBuilder(entry.getValue() + '|');
break;
} else if ((value & entry.getKey()) == entry.getKey()) {
} else if ((key != 0) && ((value & key) == key)) {
sb.append(entry.getValue()).append('|');
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册