show correct amount for pending tx (#309)

This commit is contained in:
m2049r
2018-06-11 10:21:22 +02:00
committed by GitHub
parent 74ba36de26
commit 975cc4f43c
@@ -236,9 +236,6 @@ public class TxFragment extends Fragment {
String sign = (info.direction == TransactionInfo.Direction.Direction_In ? "+" : "-");
long realAmount = info.amount;
if (info.isPending) {
realAmount = realAmount - info.fee;
}
tvTxAmount.setText(sign + Wallet.getDisplayAmount(realAmount));
if ((info.fee > 0)) {