mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-21 23:38:05 -04:00
make AndroidXMLDecompress a little less kludgey
#623 https://gitlab.com/fdroid/fdroidclient/issues/623
This commit is contained in:
@@ -89,7 +89,8 @@ public class AndroidXMLDecompress {
|
||||
}
|
||||
int offset = xmlTagOffset;
|
||||
|
||||
while (offset < binaryXml.length) {
|
||||
// we only need the first <manifest> start tag
|
||||
if (offset < binaryXml.length) {
|
||||
int tag0 = littleEndianWord(binaryXml, offset);
|
||||
|
||||
if (tag0 == START_TAG) {
|
||||
@@ -114,8 +115,6 @@ public class AndroidXMLDecompress {
|
||||
}
|
||||
return attributes;
|
||||
}
|
||||
// we only need the first <manifest> start tag
|
||||
break;
|
||||
}
|
||||
return new HashMap<>(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user