Commit 450d6f28 authored by Lucio Maciel's avatar Lucio Maciel

Use setupActionMenu

parent 09ebd8e3
......@@ -12,11 +12,9 @@ class MessageViewHolder(
) : BaseViewHolder<MessageViewModel>(itemView, listener) {
init {
itemView.text_content.movementMethod = LinkMovementMethod()
// Manually add the long click listener to the text content
if (listener.isActionsEnabled()) {
itemView.text_content.setOnLongClickListener(longClickListener)
with(itemView) {
text_content.movementMethod = LinkMovementMethod()
setupActionMenu(text_content)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment