Skip to content
Snippets Groups Projects
Commit 4cf2619d authored by Pierre Nicolas's avatar Pierre Nicolas :joy: Committed by Adrien Béraud
Browse files

conversationadapter: slide conversation to the replied message

user can now click on the text above the replied message (smthg like "in reply to bob")

Change-Id: If9ef7a8d6d63efecc050d7285642fc63ceb7ecad
parent b536cbe6
No related branches found
No related tags found
No related merge requests found
...@@ -388,9 +388,16 @@ class ConversationAdapter( ...@@ -388,9 +388,16 @@ class ConversationAdapter(
replyView.isVisible = true replyView.isVisible = true
conversationViewHolder.mReplyTxt!!.isVisible = true conversationViewHolder.mReplyTxt!!.isVisible = true
conversationViewHolder.mInReplyTo!!.isVisible = true conversationViewHolder.mInReplyTo!!.isVisible = true
replyView.setOnClickListener {
// User can click on mReplyTxt (replied message),
// mInReplyTo or mReplyName (text above the message) to go to it.
listOf(conversationViewHolder.mReplyTxt,
conversationViewHolder.mInReplyTo,
replyView).forEach{
it.setOnClickListener{
i.first.messageId?.let { presenter.scrollToMessage(it) } i.first.messageId?.let { presenter.scrollToMessage(it) }
} }
}
}) { }) {
replyView.isVisible = false replyView.isVisible = false
conversationViewHolder.mReplyTxt!!.isVisible = false conversationViewHolder.mReplyTxt!!.isVisible = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment