@Test public void checkToAddressNotSelf(){ String toAddress = "lat1x8z5nfgjnaryutayxxkzzkrfzenpwl7k6r2a81"; presenter.checkToAddressNotSelf(toAddress,toAddress); }
public boolean checkToAddressNotSelf(String toAddress,String address){ if (toAddress.equalsIgnoreCase(address)) { showLongToast(R.string.can_not_send_to_itself); return false; } return true; }
SendTransactionPresenter extends BasePresenter<SendTransationContract.View> implements SendTransationContract.Presenter { public boolean checkToAddressNotSelf(String toAddress,String address){ if (toAddress.equalsIgnoreCase(address)) { showLongToast(R.string.can_not_send_to_itself); return false; } return true; } }
SendTransactionPresenter extends BasePresenter<SendTransationContract.View> implements SendTransationContract.Presenter { public boolean checkToAddressNotSelf(String toAddress,String address){ if (toAddress.equalsIgnoreCase(address)) { showLongToast(R.string.can_not_send_to_itself); return false; } return true; }  }
SendTransactionPresenter extends BasePresenter<SendTransationContract.View> implements SendTransationContract.Presenter { public boolean checkToAddressNotSelf(String toAddress,String address){ if (toAddress.equalsIgnoreCase(address)) { showLongToast(R.string.can_not_send_to_itself); return false; } return true; }  @Override void init(); String getSenderAddress(); @Override void fetchDefaultWalletInfo(); void getEstimateGas(Wallet mWallet); @Override void transferAllBalance(); @Override void calculateFee(); @Override void calculateFeeAndTime(float progress); @Override boolean checkToAddress(String toAddress); boolean checkToAddressNotSelf(String toAddress,String address); @Override boolean checkTransferAmount(String transferAmount); void checkTransferAmountDueToGasLimitChanged(String transferAmount); @Override void submit(); @Override void updateSendTransactionButtonStatus(); @Override void saveWallet(String name, String address); @Override void updateAssetsTab(int tabIndex); @Override void setGasLimit(String gasLimit); @Override void checkAddressBook(String address); }
SendTransactionPresenter extends BasePresenter<SendTransationContract.View> implements SendTransationContract.Presenter { public boolean checkToAddressNotSelf(String toAddress,String address){ if (toAddress.equalsIgnoreCase(address)) { showLongToast(R.string.can_not_send_to_itself); return false; } return true; }  @Override void init(); String getSenderAddress(); @Override void fetchDefaultWalletInfo(); void getEstimateGas(Wallet mWallet); @Override void transferAllBalance(); @Override void calculateFee(); @Override void calculateFeeAndTime(float progress); @Override boolean checkToAddress(String toAddress); boolean checkToAddressNotSelf(String toAddress,String address); @Override boolean checkTransferAmount(String transferAmount); void checkTransferAmountDueToGasLimitChanged(String transferAmount); @Override void submit(); @Override void updateSendTransactionButtonStatus(); @Override void saveWallet(String name, String address); @Override void updateAssetsTab(int tabIndex); @Override void setGasLimit(String gasLimit); @Override void checkAddressBook(String address);  }