From 3661df266780f5c525b2ddccb203b8840e224f8c Mon Sep 17 00:00:00 2001 From: qimiko <25387744+qimiko@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:17:54 -0700 Subject: [PATCH] good one --- .../main/java/com/geode/launcher/main/UpdateComponents.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/geode/launcher/main/UpdateComponents.kt b/app/src/main/java/com/geode/launcher/main/UpdateComponents.kt index b45a002..a888efd 100644 --- a/app/src/main/java/com/geode/launcher/main/UpdateComponents.kt +++ b/app/src/main/java/com/geode/launcher/main/UpdateComponents.kt @@ -44,7 +44,8 @@ import java.net.UnknownHostException fun clearDownloadedApks(context: Context) { // technically we should be using the activity results but it was too inconsistent for my liking - val performCleanup = PreferenceUtils.get(context).getBoolean(PreferenceUtils.Key.CLEANUP_APKS) + val preferenceUtils = PreferenceUtils.get(context) + val performCleanup = preferenceUtils.getBoolean(PreferenceUtils.Key.CLEANUP_APKS) if (!performCleanup) { return } @@ -57,6 +58,8 @@ fun clearDownloadedApks(context: Context) { }?.forEach { it.delete() } + + preferenceUtils.setBoolean(PreferenceUtils.Key.CLEANUP_APKS, false) } fun generateInstallIntent(uri: Uri): Intent {