mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +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())
|
appDb.bookChapterDao.insert(*cList.toTypedArray())
|
||||||
chapterSize = cList.size
|
chapterSize = cList.size
|
||||||
nextTextChapter ?: loadContent(1)
|
nextTextChapter ?: loadContent(durChapterIndex + 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1375,6 +1375,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|||||||
}
|
}
|
||||||
ReadBook.preDownloadTask?.cancel()
|
ReadBook.preDownloadTask?.cancel()
|
||||||
ReadBook.downloadScope.coroutineContext.cancelChildren()
|
ReadBook.downloadScope.coroutineContext.cancelChildren()
|
||||||
|
ReadBook.coroutineContext.cancelChildren()
|
||||||
ReadBook.downloadedChapters.clear()
|
ReadBook.downloadedChapters.clear()
|
||||||
if (!BuildConfig.DEBUG) {
|
if (!BuildConfig.DEBUG) {
|
||||||
Backup.autoBack(this)
|
Backup.autoBack(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user