This commit is contained in:
Horis 2023-09-17 23:19:18 +08:00
parent 54b0cb8a49
commit d5a82de76a
2 changed files with 2 additions and 1 deletions

View File

@ -502,7 +502,7 @@ object ReadBook : CoroutineScope by MainScope() {
) {
appDb.bookChapterDao.insert(*cList.toTypedArray())
chapterSize = cList.size
nextTextChapter ?: loadContent(1)
nextTextChapter ?: loadContent(durChapterIndex + 1)
}
}
}

View File

@ -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)