From 5d63e56aa878a994f8cb710806a2e57aa506ee84 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 16 Aug 2019 15:22:47 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt | 1 + 1 file changed, 1 insertion(+) 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 {