- Finishing the send view

This commit is contained in:
Javier Varona 2017-10-25 23:06:38 -04:00
parent d9e4fe1710
commit b62dec59c2

View file

@ -159,14 +159,13 @@ public class SendTransactionActivity extends AppCompatActivity implements UIVali
@OnClick(R.id.btnSend) @OnClick(R.id.btnSend)
public void importSend(){ public void importSend(){
if (this.sendTransactionValidator.isValid()) { if (this.sendTransactionValidator.isValid()) {
//TODO convert the amount to long type using the precision of the currency
ValidateBitsharesSendRequest sendRequest = new ValidateBitsharesSendRequest( ValidateBitsharesSendRequest sendRequest = new ValidateBitsharesSendRequest(
this.getApplicationContext(), this.getApplicationContext(),
this.grapheneAccount, this.grapheneAccount,
this.etTo.getText().toString(), this.etTo.getText().toString(),
this.etAmount, Long.parseLong(this.etAmount.getText().toString()),
((CryptoCurrency)spAsset.getSelectedItem()).getName(), ((CryptoCurrency)spAsset.getSelectedItem()).getName(),
feeAmount,
feeAsset,
etMemo.getText().toString() etMemo.getText().toString()
); );