|
|
@ -115,6 +115,8 @@ object ReadBookViewModel { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun moveToNextChapter(upContent: Boolean) { |
|
|
|
fun moveToNextChapter(upContent: Boolean) { |
|
|
|
|
|
|
|
if (durChapterIndex < chapterSize - 1) { |
|
|
|
|
|
|
|
durPageIndex = 0 |
|
|
|
durChapterIndex++ |
|
|
|
durChapterIndex++ |
|
|
|
prevTextChapter = curTextChapter |
|
|
|
prevTextChapter = curTextChapter |
|
|
|
curTextChapter = nextTextChapter |
|
|
|
curTextChapter = nextTextChapter |
|
|
@ -134,6 +136,7 @@ object ReadBookViewModel { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun moveToPrevChapter(upContent: Boolean) { |
|
|
|
fun moveToPrevChapter(upContent: Boolean) { |
|
|
|
durChapterIndex-- |
|
|
|
durChapterIndex-- |
|
|
|