code
This commit is contained in:
parent
5d789bf96c
commit
6b9dce10cf
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ class SearchAdapter(private val activity: SearchActivity, private val type: Stri
|
||||||
override fun onBindViewHolder(holder: SearchHeaderViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: SearchHeaderViewHolder, position: Int) {
|
||||||
binding = holder.binding
|
binding = holder.binding
|
||||||
|
|
||||||
searchHistoryAdapter = SearchHistoryAdapter(type) { s -> logger(s) }
|
searchHistoryAdapter = SearchHistoryAdapter(type) {
|
||||||
|
binding.searchBarText.setText(it)
|
||||||
|
}
|
||||||
binding.searchHistoryList.layoutManager = LinearLayoutManager(binding.root.context)
|
binding.searchHistoryList.layoutManager = LinearLayoutManager(binding.root.context)
|
||||||
binding.searchHistoryList.adapter = searchHistoryAdapter
|
binding.searchHistoryList.adapter = searchHistoryAdapter
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue