feat: 优化代码

pull/193/head
kunfei 5 years ago
parent 8ddda38c75
commit 473b523205
  1. 1
      app/src/main/java/io/legado/app/model/webBook/BookChapterList.kt

@ -193,6 +193,7 @@ object BookChapterList {
list.getOrNull(book.durChapterIndex)?.title ?: book.latestChapterTitle list.getOrNull(book.durChapterIndex)?.title ?: book.latestChapterTitle
if (book.totalChapterNum < list.size) { if (book.totalChapterNum < list.size) {
book.lastCheckCount = list.size - book.totalChapterNum book.lastCheckCount = list.size - book.totalChapterNum
book.latestChapterTime = System.currentTimeMillis()
} }
book.totalChapterNum = list.size book.totalChapterNum = list.size
return list return list

Loading…
Cancel
Save