mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
d7650c659e
commit
3d92fa27ad
@ -203,14 +203,13 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
loadContent(durChapterIndex, upContent, resetPageOffset = false, pageChanged = true)
|
||||
} else if (upContent) {
|
||||
AppLog.putDebug("moveToNextChapter-章节已加载,刷新视图")
|
||||
callBack?.upContent {
|
||||
callBack?.upMenuView()
|
||||
AppLog.putDebug("moveToNextChapter-curPageChanged()")
|
||||
curPageChanged()
|
||||
}
|
||||
callBack?.upContent()
|
||||
}
|
||||
loadContent(durChapterIndex.plus(1), upContent, false)
|
||||
saveRead()
|
||||
callBack?.upMenuView()
|
||||
AppLog.putDebug("moveToNextChapter-curPageChanged()")
|
||||
curPageChanged()
|
||||
return true
|
||||
} else {
|
||||
AppLog.putDebug("跳转下一章失败,没有下一章")
|
||||
@ -231,13 +230,12 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
if (curTextChapter == null) {
|
||||
loadContent(durChapterIndex, upContent, resetPageOffset = false, pageChanged = true)
|
||||
} else if (upContent) {
|
||||
callBack?.upContent {
|
||||
callBack?.upMenuView()
|
||||
curPageChanged()
|
||||
}
|
||||
callBack?.upContent()
|
||||
}
|
||||
loadContent(durChapterIndex.minus(1), upContent, false)
|
||||
saveRead()
|
||||
callBack?.upMenuView()
|
||||
curPageChanged()
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user