- Fixing Account Existing Verification
This commit is contained in:
parent
f65e330d9b
commit
fc80baf731
2 changed files with 21 additions and 11 deletions
|
@ -189,15 +189,21 @@ public class CreateSeedActivity extends AppCompatActivity implements UIValidator
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onValidationFailed(ValidationField field) {
|
||||
if (field.getView() == etPin) {
|
||||
tvPinError.setText(field.getMessage());
|
||||
} else if (field.getView() == etPinConfirmation){
|
||||
tvPinConfirmationError.setText(field.getMessage());
|
||||
} else if (field.getView() == etAccountName){
|
||||
tvAccountNameError.setText(field.getMessage());
|
||||
} //else if (field.getView() == etSeedWords){
|
||||
// tvSeedWordsError.setText(field.getMessage());
|
||||
//}
|
||||
public void onValidationFailed(final ValidationField field) {
|
||||
runOnUiThread(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (field.getView() == etPin) {
|
||||
tvPinError.setText(field.getMessage());
|
||||
} else if (field.getView() == etPinConfirmation){
|
||||
tvPinConfirmationError.setText(field.getMessage());
|
||||
} else if (field.getView() == etAccountName){
|
||||
tvAccountNameError.setText(field.getMessage());
|
||||
} //else if (field.getView() == etSeedWords){
|
||||
// tvSeedWordsError.setText(field.getMessage());
|
||||
//}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -245,7 +245,11 @@ public class BitsharesAccountManager implements CryptoAccountManager, CryptoNetI
|
|||
ApiRequest checkAccountName = new ApiRequest(0, new ApiRequestListener() {
|
||||
@Override
|
||||
public void success(Object answer, int idPetition) {
|
||||
validateRequest.setAccountExists(true);
|
||||
if (answer != null) {
|
||||
validateRequest.setAccountExists(true);
|
||||
} else {
|
||||
validateRequest.setAccountExists(false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue