mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
9a773381aa
commit
a4c8e7ff8b
@ -196,7 +196,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
|||||||
toLast: Boolean = true
|
toLast: Boolean = true
|
||||||
): Boolean {
|
): Boolean {
|
||||||
if (durChapterIndex > 0) {
|
if (durChapterIndex > 0) {
|
||||||
durChapterPos = if (toLast) prevTextChapter?.lastReadLength ?: 0 else 0
|
durChapterPos = if (toLast) prevTextChapter?.lastReadLength ?: Int.MAX_VALUE else 0
|
||||||
durChapterIndex--
|
durChapterIndex--
|
||||||
nextTextChapter = curTextChapter
|
nextTextChapter = curTextChapter
|
||||||
curTextChapter = prevTextChapter
|
curTextChapter = prevTextChapter
|
||||||
|
Loading…
Reference in New Issue
Block a user