Merge pull request #70 from KDGDev/master

Optimized, not need function
This commit is contained in:
Connor Tumbleson 2013-01-19 10:22:23 -08:00
commit ed46fb746d

View File

@ -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;