diff --git a/app/src/main/java/io/legado/app/ui/search/SearchViewModel.kt b/app/src/main/java/io/legado/app/ui/search/SearchViewModel.kt index 179d4abb9..cfe671ce5 100644 --- a/app/src/main/java/io/legado/app/ui/search/SearchViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/search/SearchViewModel.kt @@ -26,8 +26,8 @@ class SearchViewModel(application: Application) : BaseViewModel(application) { searchBook.author -> searchBook.searchOrder = 1 else -> searchBook.searchOrder = 1000 } + App.db.searchBookDao().insert(searchBook) } - App.db.searchBookDao().insert(*it.toTypedArray()) } } tasks.add(search)