mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
39ee51dbdd
commit
36e6c0c8a4
@ -90,9 +90,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
readRecord.readTime = appDb.readRecordDao.getReadTime(book.name) ?: 0
|
||||
chapterSize = appDb.bookChapterDao.getChapterCount(book.bookUrl)
|
||||
contentProcessor = ContentProcessor.get(book)
|
||||
if (chapterSize > 0) {
|
||||
durChapterIndex = min(book.durChapterIndex, chapterSize - 1)
|
||||
}
|
||||
durChapterIndex = min(book.durChapterIndex, chapterSize - 1).coerceAtLeast(0)
|
||||
durChapterPos = book.durChapterPos
|
||||
isLocalBook = book.isLocal
|
||||
clearTextChapter()
|
||||
|
Loading…
Reference in New Issue
Block a user