Skip to content

Commit 48d1cc9

Browse files
authored
Prevent multiple checkout abort events in RoutingTargetGateKeeper (APPS-2441) (#257)
1 parent 94ed72b commit 48d1cc9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
66
### Changed
77
### Removed
88
ui: Remove ProductConfirmationDialog (APPS-2411)
9+
ui: Fix multiple cancellation events in RoutingTargetGateKeeperView (APPS-2441)
910
### Fixed
1011

1112
## [0.80.17]

ui/src/main/java/io/snabble/sdk/ui/checkout/routingtargets/RoutingTargetGatekeeperView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import io.snabble.sdk.ui.scanner.BarcodeView
2020
import io.snabble.sdk.ui.utils.I18nUtils
2121
import io.snabble.sdk.ui.utils.UIUtils
2222
import io.snabble.sdk.ui.utils.observeView
23+
import io.snabble.sdk.ui.utils.setOneShotClickListener
2324
import io.snabble.sdk.ui.utils.setTextOrHide
2425
import io.snabble.sdk.utils.Logger
2526
import kotlin.math.roundToInt
@@ -57,7 +58,7 @@ class RoutingTargetGatekeeperView @JvmOverloads constructor(
5758
helperImage = findViewById(R.id.helper_image)
5859
upArrow = findViewById(R.id.arrow)
5960

60-
cancel.setOnClickListener {
61+
cancel.setOneShotClickListener {
6162
abort()
6263
}
6364

0 commit comments

Comments
 (0)