From e9279fd1035598916aa2e37e6d07b20d28fc01ae Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 30 Sep 2019 19:43:07 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/book/search/SearchActivity.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 098fe7983..1ed4fae13 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 @@ -103,13 +103,11 @@ class SearchActivity : VMBaseActivity(R.layout.activity_book_se adapter = SearchAdapter(this) recycler_view.layoutManager = LinearLayoutManager(this) recycler_view.adapter = adapter - fb_stop.onClick { viewModel.stop() } } private fun initOtherView() { - tv_clear_history.onClick { - viewModel.clearHistory() - } + tv_clear_history.onClick { viewModel.clearHistory() } + fb_stop.onClick { viewModel.stop() } } private fun initData() {