Skip to content

Commit f14f247

Browse files
committed
Fix double back navigation
1 parent f93b277 commit f14f247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/main/java/io/snabble/sdk/ui/payment/PayoneInputView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ class PayoneInputView @JvmOverloads constructor(context: Context, attrs: Attribu
267267
Keyguard.unlock(UIUtils.getHostFragmentActivity(context), object : Keyguard.Callback {
268268
override fun success() {
269269
save(creditCardInfo)
270-
finish()
271270
}
272271

273272
override fun error() {
@@ -311,6 +310,7 @@ class PayoneInputView @JvmOverloads constructor(context: Context, attrs: Attribu
311310
}
312311

313312
private fun finish() {
313+
RuntimeException("finish and back call").printStackTrace()
314314
val callback = SnabbleUI.getUiCallback()
315315
callback?.execute(SnabbleUI.Action.GO_BACK, null)
316316
}

0 commit comments

Comments
 (0)