Skip to content

Commit d929cc4

Browse files
committed
Avoid double checkout creations again
1 parent 90f4ce1 commit d929cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/main/java/io/snabble/sdk/ui/cart/CheckoutBar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ open class CheckoutBar @JvmOverloads constructor(
169169
ButtonOptions.newBuilder().setAllowedPaymentMethods(allowedPaymentMethods.toString()).build()
170170
)
171171
}
172-
googlePayButtonLayout.setOnClickListener { handleButtonClick() }
172+
googlePayButtonLayout.setOneShotClickListener { handleButtonClick() }
173173

174174
cart.addListener(cartChangeListener)
175175
update()

0 commit comments

Comments
 (0)