Horis 2 жил өмнө
parent
commit
01629de112

+ 2 - 0
app/src/main/java/io/legado/app/model/ReadBook.kt

@@ -762,7 +762,9 @@ object ReadBook : CoroutineScope by MainScope() {
             if (book.bookUrl == ReadBook.book?.bookUrl
             if (book.bookUrl == ReadBook.book?.bookUrl
                 && cList.size > chapterSize
                 && cList.size > chapterSize
             ) {
             ) {
+                appDb.bookChapterDao.delByBook(book.bookUrl)
                 appDb.bookChapterDao.insert(*cList.toTypedArray())
                 appDb.bookChapterDao.insert(*cList.toTypedArray())
+                saveRead()
                 chapterSize = cList.size
                 chapterSize = cList.size
                 nextTextChapter ?: loadContent(durChapterIndex + 1)
                 nextTextChapter ?: loadContent(durChapterIndex + 1)
             }
             }