pull/743/head
gedoor 4 years ago
parent 21f12fbc95
commit b9ecfaba12
  1. 1
      app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt

@ -63,6 +63,7 @@ class SearchViewModel(application: Application) : BaseViewModel(application),
override fun onSearchSuccess(searchBooks: ArrayList<SearchBook>) {
val precision = context.getPrefBoolean(PreferKey.precisionSearch)
App.db.searchBookDao.insert(*searchBooks.toTypedArray())
mergeItems(this, searchBooks, precision)
}

Loading…
Cancel
Save