From 46774771ec82328816d01918b5cb43cb807e23ea Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 9 Jan 2023 22:50:11 -0500 Subject: [PATCH] Fix double tapping History not working consistently Fixes #8875 --- .../main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt index f08d5dbd80..2c11295482 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt @@ -28,7 +28,7 @@ import eu.kanade.tachiyomi.ui.manga.MangaScreen import eu.kanade.tachiyomi.ui.reader.ReaderActivity import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.flow.collectLatest -import kotlinx.coroutines.flow.consumeAsFlow +import kotlinx.coroutines.flow.receiveAsFlow object HistoryTab : Tab { @@ -110,7 +110,7 @@ object HistoryTab : Tab { } LaunchedEffect(Unit) { - resumeLastChapterReadEvent.consumeAsFlow().collectLatest { + resumeLastChapterReadEvent.receiveAsFlow().collectLatest { openChapter(context, screenModel.getNextChapter()) } }