From: Damyan Ivanov Date: Tue, 11 Dec 2018 20:50:11 +0000 (+0000) Subject: yay! locale-specific formatting groups X-Git-Tag: v0.3~252 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=9ea6b1d4b8092349d1a41049d89c698cb472dc85;p=mobile-ledger.git yay! locale-specific formatting groups --- diff --git a/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java b/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java index 411d9619..fbdc89f2 100644 --- a/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java +++ b/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java @@ -361,7 +361,7 @@ public class AccountSummary extends AppCompatActivity { String curr = cAmounts.getString(0); Float amt = cAmounts.getFloat(1); if (amt_text.length() != 0) amt_text.append('\n'); - amt_text.append(String.format("%s %1.2f", curr, amt)); + amt_text.append(String.format("%s %,1.2f", curr, amt)); } } amt_tv.setText(amt_text.toString());