We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eebc101 commit 7adea68Copy full SHA for 7adea68
ui/src/main/java/io/snabble/sdk/ui/cart/CheckoutBar.kt
@@ -366,8 +366,10 @@ open class CheckoutBar @JvmOverloads constructor(
366
CheckoutState.CONNECTION_ERROR,
367
CheckoutState.NO_SHOP,
368
CheckoutState.PAYMENT_PROCESSING_ERROR -> {
369
- SnackbarUtils.make(this, R.string.Snabble_Payment_errorStarting, UIUtils.SNACKBAR_LENGTH_VERY_LONG).show()
370
- progressDialog.dismiss()
+ if (isAttachedToWindow) {
+ SnackbarUtils.make(this, R.string.Snabble_Payment_errorStarting, UIUtils.SNACKBAR_LENGTH_VERY_LONG).show()
371
+ progressDialog.dismiss()
372
+ }
373
}
374
CheckoutState.PAYMENT_ABORTED -> {
375
progressDialog.dismiss()
0 commit comments