mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-27 09:31:20 +01: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.EpoxyAttribute
|
||||||
import com.airbnb.epoxy.EpoxyModelClass
|
import com.airbnb.epoxy.EpoxyModelClass
|
||||||
import im.vector.app.R
|
import im.vector.app.R
|
||||||
|
import im.vector.app.core.extensions.copyOnLongClick
|
||||||
|
|
||||||
@EpoxyModelClass(layout = R.layout.item_expandable_textview)
|
@EpoxyModelClass(layout = R.layout.item_expandable_textview)
|
||||||
abstract class ExpandableTextItem : VectorEpoxyModel<ExpandableTextItem.Holder>() {
|
abstract class ExpandableTextItem : VectorEpoxyModel<ExpandableTextItem.Holder>() {
|
||||||
@ -45,6 +46,7 @@ abstract class ExpandableTextItem : VectorEpoxyModel<ExpandableTextItem.Holder>(
|
|||||||
override fun bind(holder: Holder) {
|
override fun bind(holder: Holder) {
|
||||||
super.bind(holder)
|
super.bind(holder)
|
||||||
holder.content.text = content
|
holder.content.text = content
|
||||||
|
holder.content.copyOnLongClick()
|
||||||
holder.content.movementMethod = movementMethod
|
holder.content.movementMethod = movementMethod
|
||||||
|
|
||||||
holder.content.doOnPreDraw {
|
holder.content.doOnPreDraw {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user