From 6a91ede54c5730302a0b0f8664b4f1e7975ba39d Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 24 Apr 2025 16:57:44 -0400 Subject: [PATCH] Fixes the lack of locale when creating percentages on zap split screens. --- .../amethyst/ui/note/creators/zapsplits/ForwardZapTo.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/zapsplits/ForwardZapTo.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/zapsplits/ForwardZapTo.kt index 1aeb55db9..011d737c9 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/zapsplits/ForwardZapTo.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/zapsplits/ForwardZapTo.kt @@ -51,6 +51,7 @@ import com.vitorpamplona.amethyst.ui.theme.DoubleHorzSpacer import com.vitorpamplona.amethyst.ui.theme.Size10dp import com.vitorpamplona.amethyst.ui.theme.Size55dp import com.vitorpamplona.amethyst.ui.theme.placeholderText +import java.util.Locale import kotlin.math.round @Composable @@ -102,7 +103,7 @@ fun ForwardZapTo( Column(modifier = Modifier.weight(1f)) { UsernameDisplay(splitItem.key, accountViewModel = accountViewModel) Text( - text = String.format("%.0f%%", splitItem.percentage * 100), + text = String.format(Locale.getDefault(), "%.0f%%", splitItem.percentage * 100), maxLines = 1, overflow = TextOverflow.Ellipsis, fontWeight = FontWeight.Bold,