mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 01:37:34 +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());
|
JarFile jf = new JarFile(mApkFile.getAbsoluteFile());
|
||||||
JarEntry je = jf.getJarEntry("resources.arsc");
|
JarEntry je = jf.getJarEntry("resources.arsc");
|
||||||
if (je != null) {
|
if (je != null) {
|
||||||
setCompressionType(je.getMethod());
|
int compression = je.getMethod();
|
||||||
|
mCompressResources = (compression != ZipEntry.STORED) && (compression == ZipEntry.DEFLATED);
|
||||||
}
|
}
|
||||||
jf.close();
|
jf.close();
|
||||||
|
|
||||||
@ -294,12 +295,6 @@ public class ApkDecoder {
|
|||||||
private boolean getCompressionType() {
|
private boolean getCompressionType() {
|
||||||
return mCompressResources;
|
return mCompressResources;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setCompressionType(int compression) {
|
|
||||||
|
|
||||||
// check for deflate vs stored
|
|
||||||
mCompressResources = (compression == ZipEntry.STORED) ? false : (compression == ZipEntry.DEFLATED);
|
|
||||||
}
|
|
||||||
|
|
||||||
private final Androlib mAndrolib;
|
private final Androlib mAndrolib;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user