mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 15:01:52 +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