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

Use setupActionMenu

parent 09ebd8e3
...@@ -12,11 +12,9 @@ class MessageViewHolder( ...@@ -12,11 +12,9 @@ class MessageViewHolder(
) : BaseViewHolder<MessageViewModel>(itemView, listener) { ) : BaseViewHolder<MessageViewModel>(itemView, listener) {
init { init {
itemView.text_content.movementMethod = LinkMovementMethod() with(itemView) {
text_content.movementMethod = LinkMovementMethod()
// Manually add the long click listener to the text content setupActionMenu(text_content)
if (listener.isActionsEnabled()) {
itemView.text_content.setOnLongClickListener(longClickListener)
} }
} }
......
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