mirror of
https://github.com/gedoor/legado.git
synced 2024-07-19 01:17:25 +08:00
优化
This commit is contained in:
parent
54b0cb8a49
commit
d5a82de76a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user