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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user