mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 00:59:24 +01:00
use value in takewhile for pollInstallStatus in installer
This commit is contained in:
parent
5da21660a3
commit
89f0ecaeaa
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user