|
|
@ -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() { |
|
|
|