From a751f0b39632fedb1e12617d03f7e29cb9c17c41 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Sat, 3 Jul 2021 00:28:14 -0400 Subject: [PATCH] revert method name --- .../java/eu/kanade/tachiyomi/extension/ExtensionManager.kt | 2 +- .../tachiyomi/extension/util/ExtensionInstallActivity.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionManager.kt b/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionManager.kt index e77f16d88c..df0fc1f320 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionManager.kt @@ -261,7 +261,7 @@ class ExtensionManager( * @param downloadId The id of the download. * @param result Whether the extension was installed or not. */ - fun cancelInstallation(downloadId: Long, result: Boolean) { + fun setInstallationResult(downloadId: Long, result: Boolean) { installer.setInstallationResult(downloadId, result) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionInstallActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionInstallActivity.kt index 45706dd31b..cdc56cfee1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionInstallActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionInstallActivity.kt @@ -79,18 +79,18 @@ class ExtensionInstallActivity : Activity() { finish() } PackageInstaller.STATUS_SUCCESS -> { - extensionManager.cancelInstallation(downloadId, true) + extensionManager.setInstallationResult(downloadId, true) finish() } PackageInstaller.STATUS_FAILURE, PackageInstaller.STATUS_FAILURE_ABORTED, PackageInstaller.STATUS_FAILURE_BLOCKED, PackageInstaller.STATUS_FAILURE_CONFLICT, PackageInstaller.STATUS_FAILURE_INCOMPATIBLE, PackageInstaller.STATUS_FAILURE_INVALID, PackageInstaller.STATUS_FAILURE_STORAGE -> { - extensionManager.cancelInstallation(downloadId, false) + extensionManager.setInstallationResult(downloadId, false) if (status != PackageInstaller.STATUS_FAILURE_ABORTED) { toast(R.string.could_not_install_extension) } finish() } else -> { - extensionManager.cancelInstallation(downloadId, false) + extensionManager.setInstallationResult(downloadId, false) finish() } }