mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 01:45:05 +08:00
Fix copy topic on long click.
This commit is contained in:
parent
cbdacc199a
commit
18d4b66c97
@ -26,6 +26,7 @@ import androidx.core.view.isVisible
|
||||
import com.airbnb.epoxy.EpoxyAttribute
|
||||
import com.airbnb.epoxy.EpoxyModelClass
|
||||
import im.vector.app.R
|
||||
import im.vector.app.core.extensions.copyOnLongClick
|
||||
|
||||
@EpoxyModelClass(layout = R.layout.item_expandable_textview)
|
||||
abstract class ExpandableTextItem : VectorEpoxyModel<ExpandableTextItem.Holder>() {
|
||||
@ -45,6 +46,7 @@ abstract class ExpandableTextItem : VectorEpoxyModel<ExpandableTextItem.Holder>(
|
||||
override fun bind(holder: Holder) {
|
||||
super.bind(holder)
|
||||
holder.content.text = content
|
||||
holder.content.copyOnLongClick()
|
||||
holder.content.movementMethod = movementMethod
|
||||
|
||||
holder.content.doOnPreDraw {
|
||||
|
Loading…
Reference in New Issue
Block a user