private void handleSendConfirm() { if (!everythingValid()) { // Sanity check log.error("Unexpected validity failure."); validateAmount(); validateAddress(); validateTxMessage(); return; } state = State.PREPARATION; updateView(); if (application.getWallet() != null) { onMakeTransaction(address, sendAmount, getTxMessage()); } }
private void validateAddress() { validateAddress(false); }
private void validateEverything() { validateAddress(); validateAmount(); validateTxMessage(); }
@Override public void afterTextChanged(final Editable s) { validateAddress(true); }
@Override public void onFocusChange(final View v, final boolean hasFocus) { if (!hasFocus) { validateAddress(); } }