This commit is contained in:
Horis
2025-02-23 19:07:29 +08:00
parent ad856e1cd4
commit aced0178ef
2 changed files with 2 additions and 0 deletions

View File

@@ -256,6 +256,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
ReadBook.book = book
ReadBook.chapterSize = book.totalChapterNum
ReadBook.simulatedChapterSize = book.simulatedTotalChapterNum()
ReadBook.clearTextChapter()
}
}
bookData.postValue(book)

View File

@@ -173,6 +173,7 @@ class MainViewModel(application: Application) : BaseViewModel(application) {
ReadBook.book = book
ReadBook.chapterSize = book.totalChapterNum
ReadBook.simulatedChapterSize = book.simulatedTotalChapterNum()
ReadBook.clearTextChapter()
}
addDownload(source, book)
}.onFailure {