mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-26 04:33:36 +00:00
Make emoji burst more "out of the reaction".
This commit is contained in:
committed by
Cody Henthorne
parent
4d3929948c
commit
45d2a5d0b6
@@ -9,6 +9,7 @@ import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.widget.FrameLayout
|
||||
import androidx.core.view.children
|
||||
import org.thoughtcrime.securesms.R
|
||||
import org.thoughtcrime.securesms.components.emoji.EmojiUtil
|
||||
import org.thoughtcrime.securesms.events.GroupCallReactionEvent
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
@@ -23,7 +24,8 @@ class MultiReactionBurstLayout @JvmOverloads constructor(
|
||||
|
||||
init {
|
||||
repeat(MAX_SIMULTANEOUS_REACTIONS) {
|
||||
addView(OnReactionSentView(context))
|
||||
val view = OnReactionSentView(context, layoutRes = R.layout.reaction_burst_view)
|
||||
addView(view)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,13 +11,14 @@ import org.thoughtcrime.securesms.components.emoji.EmojiImageView
|
||||
|
||||
class OnReactionSentView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
attrs: AttributeSet? = null
|
||||
attrs: AttributeSet? = null,
|
||||
layoutRes: Int = R.layout.on_reaction_sent_view
|
||||
) : FrameLayout(context, attrs) {
|
||||
|
||||
var callback: Callback? = null
|
||||
|
||||
init {
|
||||
inflate(context, R.layout.on_reaction_sent_view, this)
|
||||
inflate(context, layoutRes, this)
|
||||
}
|
||||
|
||||
private val motionLayout: MotionLayout = findViewById(R.id.motion_layout)
|
||||
|
||||
Reference in New Issue
Block a user