|
|
@ -52,7 +52,6 @@ object ReadBook : CoroutineScope by MainScope() { |
|
|
|
durChapterIndex = book.durChapterIndex |
|
|
|
durChapterIndex = book.durChapterIndex |
|
|
|
durChapterPos = book.durChapterPos |
|
|
|
durChapterPos = book.durChapterPos |
|
|
|
isLocalBook = book.origin == BookType.local |
|
|
|
isLocalBook = book.origin == BookType.local |
|
|
|
chapterSize = book.totalChapterNum |
|
|
|
|
|
|
|
clearTextChapter() |
|
|
|
clearTextChapter() |
|
|
|
callBack?.upMenuView() |
|
|
|
callBack?.upMenuView() |
|
|
|
callBack?.upPageAnim() |
|
|
|
callBack?.upPageAnim() |
|
|
@ -63,6 +62,18 @@ object ReadBook : CoroutineScope by MainScope() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun upData(book: Book) { |
|
|
|
|
|
|
|
ReadBook.book = book |
|
|
|
|
|
|
|
chapterSize = appDb.bookChapterDao.getChapterCount(book.bookUrl) |
|
|
|
|
|
|
|
if (durChapterIndex != book.durChapterIndex) { |
|
|
|
|
|
|
|
durChapterIndex = book.durChapterIndex |
|
|
|
|
|
|
|
durChapterPos = book.durChapterPos |
|
|
|
|
|
|
|
clearTextChapter() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
callBack?.upMenuView() |
|
|
|
|
|
|
|
upWebBook(book) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun upWebBook(book: Book) { |
|
|
|
fun upWebBook(book: Book) { |
|
|
|
if (book.origin == BookType.local) { |
|
|
|
if (book.origin == BookType.local) { |
|
|
|
bookSource = null |
|
|
|
bookSource = null |
|
|
|