diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt index 029be993e..0daa33437 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt @@ -33,6 +33,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { ?.onSuccess { cList -> cList?.let { App.db.bookChapterDao().insert(*cList.toTypedArray()) + chapterMaxIndex.postValue(cList.size) } } } else {