mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user