From f6acc94ea3d68976f800a54a785594deece4c817 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 4 Aug 2019 21:23:36 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/search/SearchViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)