pull/32/head
kunfei 5 years ago
parent 9b8a78debf
commit 00dbba3898
  1. 2
      app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt

@ -32,7 +32,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
val count = App.db.bookChapterDao().getChapterCount(bookUrl)
if (count == 0) {
webBook?.getChapterList(book)
?.onSuccess { cList ->
?.onSuccess(IO) { cList ->
cList?.let {
App.db.bookChapterDao().insert(*cList.toTypedArray())
chapterMaxIndex.postValue(cList.size)

Loading…
Cancel
Save