Fix preference flow being cancelled
This commit is contained in:
1 parent
a3263ab4af
commit
c128a2b518
1 file changed
+2
-1
@@ -97,6 +97,7 @@ import eu.kanade.tachiyomi.util.view.setTooltip
|
||||
import eu.kanade.tachiyomi.widget.listener.SimpleAnimationListener
|
||||
import kotlinx.coroutines.FlowPreview
|
||||
import kotlinx.coroutines.cancel
|
||||
import kotlinx.coroutines.currentCoroutineContext
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.merge
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
@@ -282,7 +283,7 @@ class ReaderActivity : EhActivity() {
|
||||
mGalleryProvider!!.state.collect {
|
||||
if (it == PageLoader.STATE_READY) {
|
||||
setGallery()
|
||||
cancel()
|
||||
currentCoroutineContext().cancel()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user