diff --git a/app/src/main/java/org/gnucash/android/model/AccountType.java b/app/src/main/java/org/gnucash/android/model/AccountType.java index 6826f598b..2d3e6aa65 100644 --- a/app/src/main/java/org/gnucash/android/model/AccountType.java +++ b/app/src/main/java/org/gnucash/android/model/AccountType.java @@ -154,8 +154,8 @@ public void displayBalance(final TextView balanceTextView, // Display value without currency and without decimals balanceTextView.setText(!shallDisplayNegativeSignum ? balanceToDisplay.abs() - .toShortString() - : balanceToDisplay.toShortString()); + .toLocaleString() + : balanceToDisplay.toLocaleString()); } else { // Shall not display balance diff --git a/app/src/main/java/org/gnucash/android/model/Money.java b/app/src/main/java/org/gnucash/android/model/Money.java index e2df19714..a3d075147 100644 --- a/app/src/main/java/org/gnucash/android/model/Money.java +++ b/app/src/main/java/org/gnucash/android/model/Money.java @@ -448,15 +448,6 @@ public String toPlainString(){ return mAmount.setScale(mCommodity.getSmallestFractionDigits(), ROUNDING_MODE).toPlainString(); } - /** - * Returns a locale-specific representation of the amount of the Money object (excluding the currency) - * - * @return String representation of the amount (without currency) of the Money object - */ - public String toShortString(){ - return String.format(Locale.getDefault(), "%.0f", asDouble()); - } - /** * Returns a locale-specific representation of the amount of the Money object (excluding the currency) *