]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use locale-aware String.format
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 5 Apr 2020 20:31:50 +0000 (23:31 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 5 Apr 2020 20:31:50 +0000 (23:31 +0300)
app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java

index 4468724e5f3771490ce81221ec8d480ce30f3817..c97b7e4a5e7afd801ab73ca4234da776c66753ed 100644 (file)
@@ -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