diff --git a/core/ui/src/main/kotlin/app/pachli/core/ui/BackgroundMessageView.kt b/core/ui/src/main/kotlin/app/pachli/core/ui/BackgroundMessageView.kt index c3db41cc7..f4000bead 100644 --- a/core/ui/src/main/kotlin/app/pachli/core/ui/BackgroundMessageView.kt +++ b/core/ui/src/main/kotlin/app/pachli/core/ui/BackgroundMessageView.kt @@ -126,7 +126,11 @@ class BackgroundMessageView @JvmOverloads constructor( binding.messageTextView.text = message binding.messageTextView.movementMethod = LinkMovementMethod.getInstance() binding.imageView.setImageResource(imageRes) - binding.button.setOnClickListener(clickListener) + binding.button.setOnClickListener { + it.isEnabled = false + clickListener?.invoke(it) + } + binding.button.isEnabled = true binding.button.visible(clickListener != null) }