|
|
@ -80,10 +80,14 @@ object ReadBook { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun setProgress(progress: BookProgress) { |
|
|
|
fun setProgress(progress: BookProgress) { |
|
|
|
durChapterIndex = progress.durChapterIndex |
|
|
|
if (durChapterIndex != progress.durChapterIndex |
|
|
|
durChapterPos = progress.durChapterPos |
|
|
|
|| durChapterPos != progress.durChapterPos |
|
|
|
clearTextChapter() |
|
|
|
) { |
|
|
|
loadContent(resetPageOffset = true) |
|
|
|
durChapterIndex = progress.durChapterIndex |
|
|
|
|
|
|
|
durChapterPos = progress.durChapterPos |
|
|
|
|
|
|
|
clearTextChapter() |
|
|
|
|
|
|
|
loadContent(resetPageOffset = true) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun clearTextChapter() { |
|
|
|
fun clearTextChapter() { |
|
|
|