mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
Optimized, not need function
This commit is contained in:
parent
c836995ead
commit
60f0d9848d
@ -101,7 +101,8 @@ public class ApkDecoder {
|
||||
JarFile jf = new JarFile(mApkFile.getAbsoluteFile());
|
||||
JarEntry je = jf.getJarEntry("resources.arsc");
|
||||
if (je != null) {
|
||||
setCompressionType(je.getMethod());
|
||||
int compression = je.getMethod();
|
||||
mCompressResources = (compression != ZipEntry.STORED) && (compression == ZipEntry.DEFLATED);
|
||||
}
|
||||
jf.close();
|
||||
|
||||
@ -294,12 +295,6 @@ public class ApkDecoder {
|
||||
private boolean getCompressionType() {
|
||||
return mCompressResources;
|
||||
}
|
||||
|
||||
private void setCompressionType(int compression) {
|
||||
|
||||
// check for deflate vs stored
|
||||
mCompressResources = (compression == ZipEntry.STORED) ? false : (compression == ZipEntry.DEFLATED);
|
||||
}
|
||||
|
||||
private final Androlib mAndrolib;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user