From 5ef655a402ca6a4cb8309d4e247e3ed9848819bd Mon Sep 17 00:00:00 2001 From: Rafael Date: Mon, 3 Mar 2025 15:51:40 +0600 Subject: [PATCH 1/2] Remove redundant code from AddressCheckType --- .../bankwallet/core/address/AddressCheckType.kt | 13 ------------- app/src/main/res/values/strings.xml | 6 ------ 2 files changed, 19 deletions(-) diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/core/address/AddressCheckType.kt b/app/src/main/java/io/horizontalsystems/bankwallet/core/address/AddressCheckType.kt index 169ae5a505..ade14698af 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/core/address/AddressCheckType.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/core/address/AddressCheckType.kt @@ -28,17 +28,4 @@ enum class AddressCheckType { Sanction -> R.string.Send_Address_ErrorMessage_SanctionDetected_Description } - val clearInfoTitle: Int - get() = when (this) { - Phishing -> R.string.Send_Address_PhishingCheck_ClearInfo_Title - Blacklist -> R.string.Send_Address_BlacklistCheck_ClearInfo_Title - Sanction -> R.string.Send_Address_SanctionCheck_ClearInfo_Title - } - - val clearInfoDescription: Int - get() = when (this) { - Phishing -> R.string.Send_Address_PhishingCheck_ClearInfo_Description - Blacklist -> R.string.Send_Address_BlacklistCheck_ClearInfo_Description - Sanction -> R.string.Send_Address_SanctionCheck_ClearInfo_Description - } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d2012f84ab..544ef958fa 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -452,8 +452,6 @@ Clear Address Check Phishing Check - Phishing: Clear - The verification is based on your transaction history, and no suspicious activity has been detected. The entered address has not been involved in known spam transactions associated with phishing attempts. Analyzes the provided destination address for potential phishing risks. Clear: No suspicious activity detected. Detected: It appears that someone may be trying to trick you into sending funds to an incorrect address. Do not proceed unless absolutely certain that the address is correct. Consider sending a small test transaction first. @@ -465,10 +463,6 @@ Verifies whether the recipient’s address is subject to international sanctions, using data from Chainalysis.com. Clear: No sanctions detected. Detected: Potential legal risk. Transactions with this address may be restricted or illegal in certain jurisdictions. - Blacklist: Clear - The recipient address has passed verification through Chainalysis.com and has not been flagged. This means the address has not been detected in any known blacklists or associated with suspicious activity. - Sanction: Clear - The recipient address has passed verification through Chainalysis.com and has not been flagged. This means the address has not been detected in any known blacklists or associated with suspicious activity. Phishing Address Detected! Blacklisted Address Detected! Sanctioned Address Detected! From 937d0d8fe4a62151d6b33423e96fa7abf202cbc6 Mon Sep 17 00:00:00 2001 From: Rafael Date: Mon, 3 Mar 2025 15:53:45 +0600 Subject: [PATCH 2/2] Fix price cell in TransactionInfo to handle big text --- .../ui/compose/components/TransactionInfoCells.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/TransactionInfoCells.kt b/app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/TransactionInfoCells.kt index ee2511671a..f20c048baa 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/TransactionInfoCells.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/TransactionInfoCells.kt @@ -225,11 +225,11 @@ fun PriceWithToggleCell( modifier = Modifier.padding(horizontal = 16.dp), ) { subhead2_grey(text = title, modifier = Modifier.padding(end = 16.dp)) - Spacer(Modifier.weight(1f)) subhead1_leah( text = if (showValueOne) valueOne else valueTwo, - maxLines = 1, - overflow = TextOverflow.Ellipsis + overflow = TextOverflow.Ellipsis, + textAlign = TextAlign.End, + modifier = Modifier.weight(1f) ) HSpacer(8.dp) HsIconButton(