mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 05:19:16 +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)
|
delay(500)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.takeWhile {
|
.takeWhile { info ->
|
||||||
val sessionId = downloadInstallerMap[id]
|
val sessionId = downloadInstallerMap[id]
|
||||||
if (sessionId != null) {
|
if (sessionId != null) {
|
||||||
context.packageManager.packageInstaller.getSessionInfo(sessionId) != null
|
info.second != null
|
||||||
} else {
|
} else {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user