From 585c640938d0b24a01092c4406382c0a85d10af4 Mon Sep 17 00:00:00 2001 From: ZaneYork Date: Fri, 29 Jan 2021 13:30:52 +0800 Subject: [PATCH] Bug fix --- app/build.gradle | 4 ++-- .../main/java/com/zane/smapiinstaller/logic/ApkPatcher.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 662d590..9c2e2e8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,8 +12,8 @@ android { applicationId "com.zane.smapiinstaller" minSdkVersion 19 targetSdkVersion 30 - versionCode 66 - versionName "3.7.6.4" + versionCode 67 + versionName "3.7.6.5" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true diff --git a/app/src/main/java/com/zane/smapiinstaller/logic/ApkPatcher.java b/app/src/main/java/com/zane/smapiinstaller/logic/ApkPatcher.java index b69199e..6057d89 100644 --- a/app/src/main/java/com/zane/smapiinstaller/logic/ApkPatcher.java +++ b/app/src/main/java/com/zane/smapiinstaller/logic/ApkPatcher.java @@ -242,9 +242,9 @@ public class ApkPatcher { byte[] bytes = ByteStreams.toByteArray(in); ZipUtils.ZipEntrySource source; 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)); + } else { + source = new ZipUtils.ZipEntrySource(entry.getTargetPath() + filename, bytes, entry.getCompression()); } list.add(source); }