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

fix: configured resource indexing size limit is now correctly considered (PR #1278)

上级 0ab933ef
......@@ -202,12 +202,14 @@ public class ResourceIndex {
} else {
resNodes.add(resNode);
}
} else {
LOG.debug("Resource skipped because of size limit: {} res size {} bytes", resNode, size);
}
}
}
private void refreshSettings() {
int size = cache.getJadxSettings().getSrhResourceSkipSize() * 10240;
int size = cache.getJadxSettings().getSrhResourceSkipSize() * 1048576;
if (size != sizeLimit
|| !cache.getJadxSettings().getSrhResourceFileExt().equals(fileExts)) {
clear();
......@@ -224,14 +226,10 @@ public class ResourceIndex {
extSet.add(ext);
}
}
try {
ZipFile zipFile = getZipFile(cache.getJRoot());
try (ZipFile zipFile = getZipFile(cache.getJRoot())) {
traverseTree(cache.getJRoot(), zipFile); // reindex
if (zipFile != null) {
zipFile.close();
}
} catch (Exception e) {
e.printStackTrace();
LOG.error("Failed to apply settings to resource index", e);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册