pull/84/head
kunfei 5 years ago
parent 7f9defbb09
commit 969356d4ba
  1. 2
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt

@ -65,7 +65,6 @@ class BookshelfViewModel(application: Application) : BaseViewModel(application)
origin = bookSource.bookSourceUrl,
originName = bookSource.bookSourceName
)
suspend {
WebBook(bookSource).getBookInfo(book, this)
.onSuccess(IO) {
it?.let { book ->
@ -77,7 +76,6 @@ class BookshelfViewModel(application: Application) : BaseViewModel(application)
}
}
}
}
}.onSuccess {
if (successCount > 0) {
toast(R.string.success)

Loading…
Cancel
Save