fix(res): ignore resource entry with -1 key (#556) (PR #557)

This commit is contained in:
Ahmed Ashour
2019-04-03 11:11:33 +02:00
committed by skylot
parent 1e5541175e
commit 9d257cd115
@@ -214,6 +214,9 @@ public class ResTableParser extends CommonBinaryParser {
int size = is.readInt16();
int flags = is.readInt16();
int key = is.readInt32();
if (key == -1) {
return;
}
int resRef = pkg.getId() << 24 | typeId << 16 | entryId;
String typeName = pkg.getTypeStrings()[typeId - 1];