Bug fix
This commit is contained in:
parent
a4d6343935
commit
585c640938
|
@ -12,8 +12,8 @@ android {
|
||||||
applicationId "com.zane.smapiinstaller"
|
applicationId "com.zane.smapiinstaller"
|
||||||
minSdkVersion 19
|
minSdkVersion 19
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 66
|
versionCode 67
|
||||||
versionName "3.7.6.4"
|
versionName "3.7.6.5"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
|
@ -242,9 +242,9 @@ public class ApkPatcher {
|
||||||
byte[] bytes = ByteStreams.toByteArray(in);
|
byte[] bytes = ByteStreams.toByteArray(in);
|
||||||
ZipUtils.ZipEntrySource source;
|
ZipUtils.ZipEntrySource source;
|
||||||
if (entry.isXALZ()) {
|
if (entry.isXALZ()) {
|
||||||
source = new ZipUtils.ZipEntrySource(entry.getTargetPath() + filename, bytes, entry.getCompression());
|
|
||||||
} else {
|
|
||||||
source = new ZipUtils.ZipEntrySource(entry.getTargetPath() + filename, entry.getCompression(), () -> ZipUtils.decompressXALZ(bytes));
|
source = new ZipUtils.ZipEntrySource(entry.getTargetPath() + filename, entry.getCompression(), () -> ZipUtils.decompressXALZ(bytes));
|
||||||
|
} else {
|
||||||
|
source = new ZipUtils.ZipEntrySource(entry.getTargetPath() + filename, bytes, entry.getCompression());
|
||||||
}
|
}
|
||||||
list.add(source);
|
list.add(source);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue