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() } }