Fix spoilers not working in story replies.
This commit is contained in:
parent
963709c552
commit
2c74ac8bfa
2 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,6 @@ import android.content.Context
|
|||
import android.text.Spannable
|
||||
import android.text.Spanned
|
||||
import android.text.TextPaint
|
||||
import android.text.method.LinkMovementMethod
|
||||
import android.text.style.ClickableSpan
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
|
@ -30,6 +29,7 @@ import org.thoughtcrime.securesms.recipients.Recipient
|
|||
import org.thoughtcrime.securesms.recipients.RecipientId
|
||||
import org.thoughtcrime.securesms.util.AvatarUtil
|
||||
import org.thoughtcrime.securesms.util.DateUtils
|
||||
import org.thoughtcrime.securesms.util.LongClickMovementMethod
|
||||
import org.thoughtcrime.securesms.util.ViewUtil
|
||||
import org.thoughtcrime.securesms.util.adapter.mapping.LayoutFactory
|
||||
import org.thoughtcrime.securesms.util.adapter.mapping.MappingAdapter
|
||||
|
@ -225,7 +225,7 @@ object StoryGroupReplyItem {
|
|||
override fun bind(model: TextModel) {
|
||||
super.bind(model)
|
||||
|
||||
body.movementMethod = LinkMovementMethod.getInstance()
|
||||
body.movementMethod = LongClickMovementMethod.getInstance()
|
||||
body.text = model.text.message.getDisplayBody(context).apply {
|
||||
linkifyBody(model, this)
|
||||
}
|
||||
|
|
|
@ -94,6 +94,7 @@
|
|||
android:layout_marginEnd="20dp"
|
||||
android:layout_marginBottom="1dp"
|
||||
android:textAppearance="@style/Signal.Text.Body"
|
||||
app:emoji_renderSpoilers="true"
|
||||
app:layout_constrainedWidth="true"
|
||||
app:layout_constraintBottom_toTopOf="@id/viewed_at_below"
|
||||
app:layout_constraintEnd_toEndOf="@+id/message_content_end_barrier"
|
||||
|
|
Loading…
Add table
Reference in a new issue