Skip to content
Snippets Groups Projects
Commit 56284bb8 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

conversation: use conversation color in searchAdapter

Change-Id: I2c2fbda43949be76e26e946b1019cbe97e9a1b79
parent 37ecd4d8
No related branches found
No related tags found
No related merge requests found
......@@ -626,6 +626,8 @@ class ConversationAdapter(
notifyDataSetChanged()
}
fun getPrimaryColor() = convColor
fun setComposingStatus(composingStatus: ComposingStatus) {
val composing = composingStatus == ComposingStatus.Active
if (isComposing != composing) {
......
......@@ -853,6 +853,7 @@ class ConversationFragment : BaseSupportFragment<ConversationPresenter, Conversa
override fun onMenuItemActionExpand(item: MenuItem): Boolean {
val binding = binding ?: return false
mSearchAdapter = ConversationAdapter(this@ConversationFragment, presenter, true)
mSearchAdapter?.setPrimaryColor(mAdapter!!.getPrimaryColor())
presenter.startSearch()
currentBottomView?.isVisible = false
binding.histList.adapter = mSearchAdapter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment