pull/32/head
kunfei 5 years ago
parent 0d6f013f9b
commit 5d63e56aa8
  1. 1
      app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt

@ -33,6 +33,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
?.onSuccess { cList -> ?.onSuccess { cList ->
cList?.let { cList?.let {
App.db.bookChapterDao().insert(*cList.toTypedArray()) App.db.bookChapterDao().insert(*cList.toTypedArray())
chapterMaxIndex.postValue(cList.size)
} }
} }
} else { } else {

Loading…
Cancel
Save