mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
use static formatter
This commit is contained in:
parent
d6218f2a58
commit
9b43429de9
1 changed files with 2 additions and 3 deletions
|
@ -87,9 +87,8 @@ public class FiatLabel extends CopyableLabel {
|
|||
BigDecimal btcBalance = satsBalance.divide(BigDecimal.valueOf(Transaction.SATOSHIS_PER_BITCOIN));
|
||||
BigDecimal fiatBalance = btcBalance.multiply(BigDecimal.valueOf(getBtcRate()));
|
||||
|
||||
DecimalFormat currencyFormat = new DecimalFormat("#,##0.00");
|
||||
String label = getCurrency().getSymbol() + " " + currencyFormat.format(fiatBalance.doubleValue());
|
||||
tooltip.setText("1 BTC = " + getCurrency().getSymbol() + " " + currencyFormat.format(getBtcRate()));
|
||||
String label = getCurrency().getSymbol() + " " + CURRENCY_FORMAT.format(fiatBalance.doubleValue());
|
||||
tooltip.setText("1 BTC = " + getCurrency().getSymbol() + " " + CURRENCY_FORMAT.format(getBtcRate()));
|
||||
|
||||
setText(label);
|
||||
setTooltip(tooltip);
|
||||
|
|
Loading…
Reference in a new issue