Fix negative balance not displaying
This commit is contained in:
parent
91418b73fa
commit
4bdffe22c4
@ -207,7 +207,6 @@ public class Summary extends Fragment implements BalanceSwitchManagerInterface,
|
|||||||
layoutRefresherRunnable = new Runnable() {
|
layoutRefresherRunnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
final List<View> currencyView = new ArrayList<>();
|
|
||||||
final List<Currency> renderedCurrencies = new ArrayList<>();
|
final List<Currency> renderedCurrencies = new ArrayList<>();
|
||||||
|
|
||||||
if (balanceManager.getTotalBalance() != null)
|
if (balanceManager.getTotalBalance() != null)
|
||||||
@ -215,7 +214,7 @@ public class Summary extends Fragment implements BalanceSwitchManagerInterface,
|
|||||||
for (int i = 0; i < balanceManager.getTotalBalance().size(); i++) {
|
for (int i = 0; i < balanceManager.getTotalBalance().size(); i++) {
|
||||||
final Currency currency = balanceManager.getTotalBalance().get(i);
|
final Currency currency = balanceManager.getTotalBalance().get(i);
|
||||||
|
|
||||||
if (!currency.getSymbol().equals("USD") && ((currency.getBalance() * currency.getValue()) >= preferencesManager.getMinimumAmount())) {
|
if (!currency.getSymbol().equals("USD") && (Math.abs(currency.getBalance() * currency.getValue()) >= preferencesManager.getMinimumAmount())) {
|
||||||
//currencyView.add(layoutGenerator.getInfoLayout(currency, totalValue, preferencesManager.isBalanceHidden()));
|
//currencyView.add(layoutGenerator.getInfoLayout(currency, totalValue, preferencesManager.isBalanceHidden()));
|
||||||
renderedCurrencies.add(currency);
|
renderedCurrencies.add(currency);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user