From 7de6571579a70ab1a74cc703c14e91f3b6136387 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 5 Apr 2020 23:31:50 +0300 Subject: [PATCH] use locale-aware String.format --- .../ktnx/mobileledger/model/LedgerTransactionAccount.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java b/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java index 4468724e..c97b7e4a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java @@ -21,6 +21,8 @@ import androidx.annotation.NonNull; import net.ktnx.mobileledger.utils.Misc; +import java.util.Locale; + public class LedgerTransactionAccount { private String accountName; private String shortAccountName; @@ -99,8 +101,8 @@ public class LedgerTransactionAccount { sb.append(currency); sb.append(' '); } - sb.append(String.format("%,1.2f", amount)); + sb.append(String.format(Locale.US, "%,1.2f", amount)); return sb.toString(); } -} +} \ No newline at end of file -- 2.39.5