This commit is contained in:
Horis 2023-09-03 12:27:00 +08:00
parent a83207d594
commit a3b1ac5d89

View File

@ -441,11 +441,11 @@ object ReadBook : CoroutineScope by MainScope() {
pageChanged: Boolean,
success: (() -> Unit)? = null
) {
removeLoading(chapter.index)
if (chapter.index !in durChapterIndex - 1..durChapterIndex + 1) {
return
}
Coroutine.async {
removeLoading(chapter.index)
val contentProcessor = ContentProcessor.get(book.name, book.origin)
val displayTitle = chapter.getDisplayTitle(
contentProcessor.getTitleReplaceRules(),