From e72a56a9f41337ef0f25afac26b148e18749c248 Mon Sep 17 00:00:00 2001 From: qimiko <25387744+qimiko@users.noreply.github.com> Date: Thu, 18 Jan 2024 19:23:07 -0700 Subject: [PATCH] resolve two warnings --- app/src/main/java/com/geode/launcher/utils/DownloadUtils.kt | 2 +- app/src/main/java/com/geode/launcher/utils/LaunchUtils.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/geode/launcher/utils/DownloadUtils.kt b/app/src/main/java/com/geode/launcher/utils/DownloadUtils.kt index 467f3332..2acb88f2 100644 --- a/app/src/main/java/com/geode/launcher/utils/DownloadUtils.kt +++ b/app/src/main/java/com/geode/launcher/utils/DownloadUtils.kt @@ -99,7 +99,7 @@ object DownloadUtils { while (entry != null) { if (entry.name == zipPath) { it.copyTo(outputStream) - return@use + return@runInterruptible } entry = it.nextEntry diff --git a/app/src/main/java/com/geode/launcher/utils/LaunchUtils.kt b/app/src/main/java/com/geode/launcher/utils/LaunchUtils.kt index f255d18e..6b9afde0 100644 --- a/app/src/main/java/com/geode/launcher/utils/LaunchUtils.kt +++ b/app/src/main/java/com/geode/launcher/utils/LaunchUtils.kt @@ -24,6 +24,7 @@ object LaunchUtils { return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { game.longVersionCode } else { + @Suppress("DEPRECATION") game.versionCode.toLong() } }