mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-23 02:07:36 +01:00
Merge branch 'BurgerZ-patch-2'
This commit is contained in:
commit
2b2441b405
@ -161,7 +161,7 @@ public class Androlib {
|
||||
}
|
||||
}
|
||||
|
||||
public void recordUncompressedFiles(ExtFile apkFile, Collection<String> uncompressedExtensions) throws AndrolibException {
|
||||
public void recordUncompressedFiles(ExtFile apkFile, Collection<String> uncompressedFilesOrExts) throws AndrolibException {
|
||||
try {
|
||||
Directory unk = apkFile.getDirectory();
|
||||
Set<String> files = unk.getFiles(true);
|
||||
@ -171,9 +171,11 @@ public class Androlib {
|
||||
if (isAPKFileNames(file) && !NO_COMPRESS_PATTERN.matcher(file).find()) {
|
||||
if (unk.getCompressionLevel(file) == 0) {
|
||||
ext = FilenameUtils.getExtension(file);
|
||||
|
||||
if (! uncompressedExtensions.contains(ext)) {
|
||||
uncompressedExtensions.add(FilenameUtils.getExtension(file));
|
||||
if (ext.isEmpty()) {
|
||||
ext = file;
|
||||
}
|
||||
if (! uncompressedFilesOrExts.contains(ext)) {
|
||||
uncompressedFilesOrExts.add(ext);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user