This commit is contained in:
rebelonion 2024-01-28 04:24:20 -06:00
parent 5d789bf96c
commit 6b9dce10cf

View file

@ -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