This commit is contained in:
Horis committed 2023-09-17 23:19:18 +08:00
1 parent 8885307c33
commit c1f7c91669
2 files changed
+2 -1

No files matched your search

@@ -502,7 +502,7 @@ object ReadBook : CoroutineScope by MainScope() {
) {
appDb.bookChapterDao.insert(*cList.toTypedArray())
chapterSize = cList.size
nextTextChapter ?: loadContent(1)
nextTextChapter ?: loadContent(durChapterIndex + 1)
}
}
}
@@ -1375,6 +1375,7 @@ class ReadBookActivity : BaseReadBookActivity(),
}
ReadBook.preDownloadTask?.cancel()
ReadBook.downloadScope.coroutineContext.cancelChildren()
ReadBook.coroutineContext.cancelChildren()
ReadBook.downloadedChapters.clear()
if (!BuildConfig.DEBUG) {
Backup.autoBack(this)