Fix issue where reaction animation would only play first time.
This commit is contained in:
parent
d716416d1d
commit
07ec14d5c4
1 changed files with 1 additions and 3 deletions
|
@ -8,7 +8,6 @@ import androidx.constraintlayout.motion.widget.TransitionAdapter
|
|||
import androidx.core.view.doOnNextLayout
|
||||
import org.thoughtcrime.securesms.R
|
||||
import org.thoughtcrime.securesms.components.emoji.EmojiImageView
|
||||
import org.thoughtcrime.securesms.util.visible
|
||||
|
||||
class OnReactionSentView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
|
@ -26,7 +25,7 @@ class OnReactionSentView @JvmOverloads constructor(
|
|||
init {
|
||||
motionLayout.addTransitionListener(object : TransitionAdapter() {
|
||||
override fun onTransitionCompleted(p0: MotionLayout?, p1: Int) {
|
||||
visible = false
|
||||
motionLayout.progress = 0f
|
||||
callback?.onFinished()
|
||||
}
|
||||
})
|
||||
|
@ -34,7 +33,6 @@ class OnReactionSentView @JvmOverloads constructor(
|
|||
|
||||
fun playForEmoji(emoji: CharSequence) {
|
||||
motionLayout.progress = 0f
|
||||
motionLayout.visible = true
|
||||
|
||||
listOf(
|
||||
R.id.emoji_1,
|
||||
|
|
Loading…
Add table
Reference in a new issue