pull/36/head
kunfei 5 years ago
parent c77c257556
commit e9279fd103
  1. 6
      app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt

@ -103,13 +103,11 @@ class SearchActivity : VMBaseActivity<SearchViewModel>(R.layout.activity_book_se
adapter = SearchAdapter(this) adapter = SearchAdapter(this)
recycler_view.layoutManager = LinearLayoutManager(this) recycler_view.layoutManager = LinearLayoutManager(this)
recycler_view.adapter = adapter recycler_view.adapter = adapter
fb_stop.onClick { viewModel.stop() }
} }
private fun initOtherView() { private fun initOtherView() {
tv_clear_history.onClick { tv_clear_history.onClick { viewModel.clearHistory() }
viewModel.clearHistory() fb_stop.onClick { viewModel.stop() }
}
} }
private fun initData() { private fun initData() {

Loading…
Cancel
Save