From 540b48f3ee42330a15cc56db29917bb511d4c7b2 Mon Sep 17 00:00:00 2001 From: Konloch Date: Sun, 11 Jul 2021 02:31:34 -0700 Subject: [PATCH] Fixed APK/DEX Importing --- .../resources/importing/impl/APKResourceImporter.java | 2 +- .../resources/importing/impl/DEXResourceImporter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/APKResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/APKResourceImporter.java index d005a039..44d0a1db 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/APKResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/APKResourceImporter.java @@ -49,7 +49,7 @@ public class APKResourceImporter implements Importer Enjarify.apk2Jar(tempCopy, output); //create a new resource importer and copy the contents from it - container.clear().copy(new ResourceContainerImporter( + container.copy(new ResourceContainerImporter( new ResourceContainer(output)).importAsZip().getContainer()); BytecodeViewer.updateBusyStatus(false); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DEXResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DEXResourceImporter.java index 29615b07..73af8cd2 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DEXResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DEXResourceImporter.java @@ -38,7 +38,7 @@ public class DEXResourceImporter implements Importer Enjarify.apk2Jar(tempCopy, output); //create a new resource importer and copy the contents from it - container.clear().copy(new ResourceContainerImporter( + container.copy(new ResourceContainerImporter( new ResourceContainer(output)).importAsZip().getContainer()); BytecodeViewer.updateBusyStatus(false);