From eb4dabe47ec2fac175c1f8a0aec1e634e642d182 Mon Sep 17 00:00:00 2001 From: Vlad Kozarez Date: Mon, 22 Apr 2024 15:28:13 +0100 Subject: [PATCH] AND-6864 fixed double call scan result --- .../src/main/java/com/tangem/sdk/ui/NfcSessionDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tangem-sdk-android/src/main/java/com/tangem/sdk/ui/NfcSessionDialog.kt b/tangem-sdk-android/src/main/java/com/tangem/sdk/ui/NfcSessionDialog.kt index c165c5f0..e227054e 100644 --- a/tangem-sdk-android/src/main/java/com/tangem/sdk/ui/NfcSessionDialog.kt +++ b/tangem-sdk-android/src/main/java/com/tangem/sdk/ui/NfcSessionDialog.kt @@ -146,7 +146,7 @@ class NfcSessionDialog( private fun onSuccess(state: SessionViewDelegateState.Success) { setStateAndShow(state, headerWidget, progressStateWidget, messageWidget) performHapticFeedback() - postUI(msTime = 1000) { cancel() } + postUI(msTime = 1000) { dismissInternal() } } private fun onError(state: SessionViewDelegateState.Error) {