Program: 91085
Project: 91085
Buggy source:
private void updateUiKnownBalance(CurrencyBasedBalance balance){
  String valueString=Utils.getFormattedValueWithUnit(balance.confirmed,_mbwManager.getBitcoinDenomination());
  WalletAccount account=Preconditions.checkNotNull(_mbwManager.getSelectedAccount());
  if (account instanceof ColuAccount) {
    valueString=Utils.getColuFormattedValueWithUnit(account.getCurrencyBasedBalance().confirmed);
  }
  ((TextView)_root.findViewById(R.id.tvBalance)).setText(valueString);
  _root.findViewById(R.id.pbProgress).setVisibility(balance.isSynchronizing ? View.VISIBLE : View.GONE);
  _tcdFiatDisplay.setFiatOnly(balance.confirmed.isBtc() || (account instanceof ColuAccount && ((ColuAccount)account).getColuAsset().assetType == ColuAccount.ColuAssetType.RMC));
  _tcdFiatDisplay.setValue(balance.confirmed);
  if (balance.receiving.getValue().compareTo(BigDecimal.ZERO) > 0) {
    String receivingString;
    if (account instanceof ColuAccount) {
      receivingString=Utils.getColuFormattedValueWithUnit(balance.receiving);
    }
 else {
      receivingString=Utils.getFormattedValueWithUnit(balance.receiving,_mbwManager.getBitcoinDenomination());
    }
    String receivingText=getResources().getString(R.string.receiving,receivingString);
    TextView tvReceiving=_root.findViewById(R.id.tvReceiving);
    tvReceiving.setText(receivingText);
    tvReceiving.setVisibility(View.VISIBLE);
  }
 else {
    _root.findViewById(R.id.tvReceiving).setVisibility(View.GONE);
  }
  setFiatValue(R.id.tvReceivingFiat,balance.receiving,true);
  if (balance.sending.getValue().compareTo(BigDecimal.ZERO) > 0) {
    String sendingString;
    if (account instanceof ColuAccount) {
      sendingString=Utils.getColuFormattedValueWithUnit(balance.sending);
    }
 else {
      sendingString=Utils.getFormattedValueWithUnit(balance.sending,_mbwManager.getBitcoinDenomination());
    }
    String sendingText=getResources().getString(R.string.sending,sendingString);
    TextView tvSending=_root.findViewById(R.id.tvSending);
    tvSending.setText(sendingText);
    tvSending.setVisibility(View.VISIBLE);
  }
 else {
    _root.findViewById(R.id.tvSending).setVisibility(View.GONE);
  }
  setFiatValue(R.id.tvSendingFiat,balance.sending,true);
}

Fixed version (ground truth):
private void updateUiKnownBalance(CurrencyBasedBalance balance){
  String valueString=Utils.getFormattedValueWithUnit(balance.confirmed,_mbwManager.getBitcoinDenomination());
  WalletAccount account=Preconditions.checkNotNull(_mbwManager.getSelectedAccount());
  if (account instanceof ColuAccount) {
    valueString=Utils.getColuFormattedValueWithUnit(account.getCurrencyBasedBalance().confirmed);
  }
  ((TextView)_root.findViewById(R.id.tvBalance)).setText(valueString);
  _root.findViewById(R.id.pbProgress).setVisibility(balance.isSynchronizing ? View.VISIBLE : View.GONE);
  _tcdFiatDisplay.setFiatOnly(true);
  _tcdFiatDisplay.setValue(balance.confirmed);
  if (balance.receiving.getValue().compareTo(BigDecimal.ZERO) > 0) {
    String receivingString;
    if (account instanceof ColuAccount) {
      receivingString=Utils.getColuFormattedValueWithUnit(balance.receiving);
    }
 else {
      receivingString=Utils.getFormattedValueWithUnit(balance.receiving,_mbwManager.getBitcoinDenomination());
    }
    String receivingText=getResources().getString(R.string.receiving,receivingString);
    TextView tvReceiving=_root.findViewById(R.id.tvReceiving);
    tvReceiving.setText(receivingText);
    tvReceiving.setVisibility(View.VISIBLE);
  }
 else {
    _root.findViewById(R.id.tvReceiving).setVisibility(View.GONE);
  }
  setFiatValue(R.id.tvReceivingFiat,balance.receiving,true);
  if (balance.sending.getValue().compareTo(BigDecimal.ZERO) > 0) {
    String sendingString;
    if (account instanceof ColuAccount) {
      sendingString=Utils.getColuFormattedValueWithUnit(balance.sending);
    }
 else {
      sendingString=Utils.getFormattedValueWithUnit(balance.sending,_mbwManager.getBitcoinDenomination());
    }
    String sendingText=getResources().getString(R.string.sending,sendingString);
    TextView tvSending=_root.findViewById(R.id.tvSending);
    tvSending.setText(sendingText);
    tvSending.setVisibility(View.VISIBLE);
  }
 else {
    _root.findViewById(R.id.tvSending).setVisibility(View.GONE);
  }
  setFiatValue(R.id.tvSendingFiat,balance.sending,true);
}