From 48d257ceafcd9091cc92fcc680d9f90b5a3811ab Mon Sep 17 00:00:00 2001 From: Javi Rueda Date: Mon, 19 Apr 2021 19:55:49 +0200 Subject: [PATCH] Show total wallet balance in USD instead of spendable balance conversion (#1186) --- app/src/main/java/io/lbry/browser/ui/wallet/WalletFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/lbry/browser/ui/wallet/WalletFragment.java b/app/src/main/java/io/lbry/browser/ui/wallet/WalletFragment.java index 0e7cd3bc..089977ca 100644 --- a/app/src/main/java/io/lbry/browser/ui/wallet/WalletFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/wallet/WalletFragment.java @@ -688,7 +688,7 @@ public class WalletFragment extends BaseFragment implements SdkStatusListener, W double totalBalance = walletBalance.getTotal().doubleValue(); double spendableBalance = walletBalance.getAvailable().doubleValue(); double supportingBalance = walletBalance.getClaims().doubleValue() + walletBalance.getTips().doubleValue() + walletBalance.getSupports().doubleValue(); - double usdBalance = spendableBalance * Lbryio.LBCUSDRate; + double usdBalance = totalBalance * Lbryio.LBCUSDRate; double tipsBalance = walletBalance.getTips().doubleValue(); if (detailRows == null)