diff --git a/app/src/main/java/com/tangem/tap/domain/configurable/warningMessage/WarningMessagesManager.kt b/app/src/main/java/com/tangem/tap/domain/configurable/warningMessage/WarningMessagesManager.kt
index 40c5755a23..3b8d72a07b 100644
--- a/app/src/main/java/com/tangem/tap/domain/configurable/warningMessage/WarningMessagesManager.kt
+++ b/app/src/main/java/com/tangem/tap/domain/configurable/warningMessage/WarningMessagesManager.kt
@@ -189,17 +189,24 @@ class WarningMessagesManager(
priority = WarningMessage.Priority.Warning,
listOf(WarningMessage.Location.MainScreen),
blockchains = null,
- titleResId = R.string.alert_funds_restoration_message,
+ titleResId = R.string.alert_title,
messageResId = R.string.alert_funds_restoration_message,
origin = WarningMessage.Origin.Local,
buttonTextId = R.string.warning_button_learn_more
)
const val REMAINING_SIGNATURES_WARNING = 10
+ private const val RESTORE_FUNDS_GUIDE_URL_RU =
+ "https://tangem.com/ru/kak-vosstanovit-tokeny-otpravlennye-ne-na-tot-adres-v-tangem-wallet"
+ private const val RESTORE_FUNDS_GUIDE_URL_EN =
+ "https://tangem.com/en/how-to-recover-crypto-sent-to-the-wrong-address-in-tangem-wallet"
fun getRestoreFundsGuideUrl(locale: String): String {
- val code = if (locale == Locale("ru").language) "ru" else "en"
- return "https://tangem.com/$code/notion"
+ return if (locale == Locale("ru").language) {
+ RESTORE_FUNDS_GUIDE_URL_RU
+ } else {
+ RESTORE_FUNDS_GUIDE_URL_EN
+ }
}
}
}
\ No newline at end of file
diff --git a/app/src/main/java/com/tangem/tap/features/wallet/ui/adapters/WarningMessagesAdapter.kt b/app/src/main/java/com/tangem/tap/features/wallet/ui/adapters/WarningMessagesAdapter.kt
index f3084472e8..a566f7b5e6 100644
--- a/app/src/main/java/com/tangem/tap/features/wallet/ui/adapters/WarningMessagesAdapter.kt
+++ b/app/src/main/java/com/tangem/tap/features/wallet/ui/adapters/WarningMessagesAdapter.kt
@@ -86,13 +86,13 @@ class WarningMessageVH(val binding: LayoutWarningBinding) : RecyclerView.ViewHol
binding.btnClose.hide()
val buttonAction =
- when (warning.titleResId) {
- R.string.warning_important_security_info -> {
+ when {
+ warning.titleResId == R.string.warning_important_security_info -> {
View.OnClickListener {
store.dispatch(WalletAction.ShowDialog.SignedHashesMultiWalletDialog)
}
}
- R.string.alert_funds_restoration_message -> {
+ warning.messageResId == R.string.alert_funds_restoration_message -> {
binding.btnClose.show()
binding.btnClose.setOnClickListener {
store.dispatch(GlobalAction.HideWarningMessage(warning))
diff --git a/app/src/main/res/values-de/strings_final.xml b/app/src/main/res/values-de/strings_final.xml
index 6753ad4f1b..8d4a44e9d5 100644
--- a/app/src/main/res/values-de/strings_final.xml
+++ b/app/src/main/res/values-de/strings_final.xml
@@ -40,7 +40,7 @@
Available networks
Note that tokens on different networks have different addresses. Double check that your address matches the network when you transfer funds.
Contract address copied!
- Funds restoration instuction
+ If you chose the wrong network during your crypto transfer from the exchange, this guide will help you recover your funds
Custom
diff --git a/app/src/main/res/values-fr/strings_final.xml b/app/src/main/res/values-fr/strings_final.xml
index 6753ad4f1b..8d4a44e9d5 100644
--- a/app/src/main/res/values-fr/strings_final.xml
+++ b/app/src/main/res/values-fr/strings_final.xml
@@ -40,7 +40,7 @@
Available networks
Note that tokens on different networks have different addresses. Double check that your address matches the network when you transfer funds.
Contract address copied!
- Funds restoration instuction
+ If you chose the wrong network during your crypto transfer from the exchange, this guide will help you recover your funds
Custom
diff --git a/app/src/main/res/values-it/strings_final.xml b/app/src/main/res/values-it/strings_final.xml
index 6753ad4f1b..8d4a44e9d5 100644
--- a/app/src/main/res/values-it/strings_final.xml
+++ b/app/src/main/res/values-it/strings_final.xml
@@ -40,7 +40,7 @@
Available networks
Note that tokens on different networks have different addresses. Double check that your address matches the network when you transfer funds.
Contract address copied!
- Funds restoration instuction
+ If you chose the wrong network during your crypto transfer from the exchange, this guide will help you recover your funds
Custom
diff --git a/app/src/main/res/values-ru/strings_final.xml b/app/src/main/res/values-ru/strings_final.xml
index 9078737b3c..cfb7744d12 100644
--- a/app/src/main/res/values-ru/strings_final.xml
+++ b/app/src/main/res/values-ru/strings_final.xml
@@ -40,7 +40,7 @@
Доступные сети
Внимание! Валюты на разных сетях имеют разные адреса. Убедитесь, что адрес соответствует сети, в которой вы отправляете средства.
Адрес контракта скопирован!
- Инструкция по восстановлению средств
+ Если вы совершили ошибку с выбором сети при переводе средств с биржи, эта инструкция поможет вам восстановить средства
Пользовательский
diff --git a/app/src/main/res/values/strings_final.xml b/app/src/main/res/values/strings_final.xml
index 6753ad4f1b..8d4a44e9d5 100644
--- a/app/src/main/res/values/strings_final.xml
+++ b/app/src/main/res/values/strings_final.xml
@@ -40,7 +40,7 @@
Available networks
Note that tokens on different networks have different addresses. Double check that your address matches the network when you transfer funds.
Contract address copied!
- Funds restoration instuction
+ If you chose the wrong network during your crypto transfer from the exchange, this guide will help you recover your funds
Custom