This commit is contained in:
Horis 2023-08-24 22:50:12 +08:00
parent d7650c659e
commit 3d92fa27ad

View File

@ -203,14 +203,13 @@ object ReadBook : CoroutineScope by MainScope() {
loadContent(durChapterIndex, upContent, resetPageOffset = false, pageChanged = true) loadContent(durChapterIndex, upContent, resetPageOffset = false, pageChanged = true)
} else if (upContent) { } else if (upContent) {
AppLog.putDebug("moveToNextChapter-章节已加载,刷新视图") AppLog.putDebug("moveToNextChapter-章节已加载,刷新视图")
callBack?.upContent { callBack?.upContent()
callBack?.upMenuView()
AppLog.putDebug("moveToNextChapter-curPageChanged()")
curPageChanged()
}
} }
loadContent(durChapterIndex.plus(1), upContent, false) loadContent(durChapterIndex.plus(1), upContent, false)
saveRead() saveRead()
callBack?.upMenuView()
AppLog.putDebug("moveToNextChapter-curPageChanged()")
curPageChanged()
return true return true
} else { } else {
AppLog.putDebug("跳转下一章失败,没有下一章") AppLog.putDebug("跳转下一章失败,没有下一章")
@ -231,13 +230,12 @@ object ReadBook : CoroutineScope by MainScope() {
if (curTextChapter == null) { if (curTextChapter == null) {
loadContent(durChapterIndex, upContent, resetPageOffset = false, pageChanged = true) loadContent(durChapterIndex, upContent, resetPageOffset = false, pageChanged = true)
} else if (upContent) { } else if (upContent) {
callBack?.upContent { callBack?.upContent()
callBack?.upMenuView()
curPageChanged()
}
} }
loadContent(durChapterIndex.minus(1), upContent, false) loadContent(durChapterIndex.minus(1), upContent, false)
saveRead() saveRead()
callBack?.upMenuView()
curPageChanged()
return true return true
} else { } else {
return false return false