From f2f7ad1b0b331b94ee5890d7c403505f829861db Mon Sep 17 00:00:00 2001 From: backendan <122120289+backendan@users.noreply.github.com> Date: Fri, 19 Jan 2024 19:02:28 +0200 Subject: [PATCH] issue2880: replace four stars as hiding balance charcatars to one star (#2882) Co-authored-by: a --- .../com/ivy/legacy/legacy/ui/theme/components/BalanceRow.kt | 2 +- .../com/ivy/legacy/legacy/ui/theme/wallet/AmountCurrency.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/temp-legacy-code/src/main/java/com/ivy/legacy/legacy/ui/theme/components/BalanceRow.kt b/temp-legacy-code/src/main/java/com/ivy/legacy/legacy/ui/theme/components/BalanceRow.kt index 9baaded61e..aeb846b036 100644 --- a/temp-legacy-code/src/main/java/com/ivy/legacy/legacy/ui/theme/components/BalanceRow.kt +++ b/temp-legacy-code/src/main/java/com/ivy/legacy/legacy/ui/theme/components/BalanceRow.kt @@ -115,7 +115,7 @@ fun BalanceRow( } Text( text = when { - hiddenMode -> "****" + hiddenMode -> "*" balanceAmountPrefix != null -> "$balanceAmountPrefix$integerPartFormatted" else -> integerPartFormatted }, diff --git a/temp-legacy-code/src/main/java/com/ivy/legacy/legacy/ui/theme/wallet/AmountCurrency.kt b/temp-legacy-code/src/main/java/com/ivy/legacy/legacy/ui/theme/wallet/AmountCurrency.kt index 6c24388aec..cfd679d9ab 100644 --- a/temp-legacy-code/src/main/java/com/ivy/legacy/legacy/ui/theme/wallet/AmountCurrency.kt +++ b/temp-legacy-code/src/main/java/com/ivy/legacy/legacy/ui/theme/wallet/AmountCurrency.kt @@ -76,7 +76,7 @@ fun AmountCurrencyB1( ) { val shortAmount = shortenBigNumbers && shouldShortAmount(amount) val text = if (hideIncome) { - "****" + "*" } else { if (shortAmount) shortenAmount(amount) else amount.format(currency) }