diff --git a/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionInstaller.kt b/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionInstaller.kt index df157ddb3b..937c5df728 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionInstaller.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionInstaller.kt @@ -189,10 +189,10 @@ internal class ExtensionInstaller(private val context: Context) { delay(500) } } - .takeWhile { + .takeWhile { info -> val sessionId = downloadInstallerMap[id] if (sessionId != null) { - context.packageManager.packageInstaller.getSessionInfo(sessionId) != null + info.second != null } else { true }