Fix double tapping History not working consistently
Fixes #8875 (cherry picked from commit 46774771ec82328816d01918b5cb43cb807e23ea) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt
This commit is contained in:
parent
eaee8747a4
commit
4c2e9aa509
@ -32,7 +32,7 @@ import eu.kanade.tachiyomi.ui.manga.MangaScreen
|
|||||||
import eu.kanade.tachiyomi.ui.reader.ReaderActivity
|
import eu.kanade.tachiyomi.ui.reader.ReaderActivity
|
||||||
import kotlinx.coroutines.channels.Channel
|
import kotlinx.coroutines.channels.Channel
|
||||||
import kotlinx.coroutines.flow.collectLatest
|
import kotlinx.coroutines.flow.collectLatest
|
||||||
import kotlinx.coroutines.flow.consumeAsFlow
|
import kotlinx.coroutines.flow.receiveAsFlow
|
||||||
import uy.kohesive.injekt.Injekt
|
import uy.kohesive.injekt.Injekt
|
||||||
import uy.kohesive.injekt.api.get
|
import uy.kohesive.injekt.api.get
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ object HistoryTab : Tab {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LaunchedEffect(Unit) {
|
LaunchedEffect(Unit) {
|
||||||
resumeLastChapterReadEvent.consumeAsFlow().collectLatest {
|
resumeLastChapterReadEvent.receiveAsFlow().collectLatest {
|
||||||
openChapter(context, screenModel.getNextChapter())
|
openChapter(context, screenModel.getNextChapter())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user