always apply tx_amount from qr code (#687)

This commit is contained in:
m2049r 2020-09-27 11:00:57 +02:00 committed by GitHub
parent 7206857a5b
commit e5b15b7816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -148,14 +148,11 @@ public class SendAmountWizardFragment extends SendWizardFragment {
tvFunds.setText(getString(R.string.send_available, tvFunds.setText(getString(R.string.send_available,
getString(R.string.unknown_amount))); getString(R.string.unknown_amount)));
} }
// getNativeAmount is null if exchange is in progress
if ((etAmount.getNativeAmount() != null) && etAmount.getNativeAmount().isEmpty()) {
final BarcodeData data = sendListener.popBarcodeData(); final BarcodeData data = sendListener.popBarcodeData();
if ((data != null) && (data.amount != null)) { if ((data != null) && (data.amount != null)) {
etAmount.setAmount(data.amount); etAmount.setAmount(data.amount);
} }
} }
}
long getTotalFunds() { long getTotalFunds() {
return sendListener.getActivityCallback().getTotalFunds(); return sendListener.getActivityCallback().getTotalFunds();