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