From a2724daa8a75c4ed03029d2497f26857c2c6d3cb Mon Sep 17 00:00:00 2001 From: Konloch Date: Tue, 29 Jun 2021 11:31:38 -0700 Subject: [PATCH] XAPK Support --- .../bytecode/club/bytecodeviewer/gui/MainViewerGUI.java | 9 +++++++++ .../resources/importing/impl/XAPKResourceImporter.java | 1 + 2 files changed, 10 insertions(+) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java index 5f2f29a9..4ccb8bae 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java @@ -733,6 +733,15 @@ public class MainViewerGUI extends JFrame deleteForeignOutdatedLibs.setSelected(Configuration.deleteForeignLibraries); } + public synchronized void clearBusyStatus() + { + for (int i = 0; i < waitIcons.length; i++) + { + waitIcons[i].setIcon(null); + waitIcons[i].updateUI(); + } + } + public synchronized void updateBusyStatus(final boolean busy) { SwingUtilities.invokeLater(() -> { if (busy) { diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/XAPKResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/XAPKResourceImporter.java index 715d923f..819ccae2 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/XAPKResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/XAPKResourceImporter.java @@ -70,6 +70,7 @@ public class XAPKResourceImporter implements Importer } } Configuration.silenceExceptionGUI--; //turn exceptions back on + BytecodeViewer.viewer.clearBusyStatus(); //clear errant busy signals from failed APK imports container.classes.addAll(allDirectoryClasses.values()); container.files = allDirectoryFiles;