fix: add file extension to doNotCompress only if the file size is not 0

This commit is contained in:
Alexei Khlebnikov 2018-07-19 18:14:48 +02:00
parent 76bf6ff0c8
commit 564b285126
1 changed files with 3 additions and 1 deletions

View File

@ -168,7 +168,9 @@ public class Androlib {
String ext;
for (String file : files) {
if (isAPKFileNames(file) && unk.getCompressionLevel(file) == 0) {
if (isAPKFileNames(file) &&
unk.getCompressionLevel(file) == 0 &&
unk.getSize(file) != 0) {
if (StringUtils.countMatches(file, ".") > 1) {
ext = file;