From 720759fb1ac94c75da527a656b2cf87237f98376 Mon Sep 17 00:00:00 2001 From: Tangem Date: Fri, 27 Feb 2026 17:40:42 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../send/v2/common/SendConfirmAlertFactory.kt | 11 +++++++---- .../supply/impl/common/YieldSupplyAlertFactory.kt | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/common/SendConfirmAlertFactory.kt b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/common/SendConfirmAlertFactory.kt index 78b805b69a..d066f0da3a 100644 --- a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/common/SendConfirmAlertFactory.kt +++ b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/common/SendConfirmAlertFactory.kt @@ -22,10 +22,13 @@ internal class SendConfirmAlertFactory @Inject constructor( title = resourceReference(id = R.string.send_alert_transaction_failed_title), message = resourceReference(id = R.string.common_unknown_error), onDismissRequest = popBack, - firstAction = EventMessageAction( - title = resourceReference(R.string.common_support), - onClick = onFailedTxEmailClick, - ), + firstActionBuilder = { + EventMessageAction( + title = resourceReference(R.string.common_support), + onClick = onFailedTxEmailClick, + ) + }, + secondActionBuilder = { cancelAction { } }, ), ) } diff --git a/features/yield-supply/impl/src/main/java/com/tangem/features/yield/supply/impl/common/YieldSupplyAlertFactory.kt b/features/yield-supply/impl/src/main/java/com/tangem/features/yield/supply/impl/common/YieldSupplyAlertFactory.kt index 00958d2ec1..e5f5e68cca 100644 --- a/features/yield-supply/impl/src/main/java/com/tangem/features/yield/supply/impl/common/YieldSupplyAlertFactory.kt +++ b/features/yield-supply/impl/src/main/java/com/tangem/features/yield/supply/impl/common/YieldSupplyAlertFactory.kt @@ -32,10 +32,13 @@ class YieldSupplyAlertFactory @Inject constructor( title = resourceReference(id = R.string.send_alert_transaction_failed_title), message = resourceReference(id = R.string.common_unknown_error), onDismissRequest = popBack, - firstAction = EventMessageAction( - title = resourceReference(R.string.common_support), - onClick = onFailedTxEmailClick, - ), + firstActionBuilder = { + EventMessageAction( + title = resourceReference(R.string.common_support), + onClick = onFailedTxEmailClick, + ) + }, + secondActionBuilder = { cancelAction { } }, ), ) }