diff --git a/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt b/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt index e5d3cfc21..9e550f9a1 100644 --- a/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt @@ -187,11 +187,11 @@ class SearchActivity : VMBaseActivity isManualStopSearch = false - viewModel.saveSearchKey(query) + viewModel.saveSearchKey(searchKey) viewModel.searchKey = "" - viewModel.search(it) + viewModel.search(searchKey) } visibleInputHelp(false) return true @@ -199,7 +199,7 @@ class SearchActivity : VMBaseActivity