Android-Validator
Android-Validator copied to clipboard
closeAllErrors problem
function closeAllErrors() cant close ConfirmValidate. You'll get exception
E/AndroidRuntime(27795): java.lang.ClassCastException: >.validator.validate.ConfirmValidate cannot be cast to .validator.Validate
Can you post the code that you are running and anything related as it is working for me. @trungnguyennam
Sorry for very late response. Simply create a ConfirmValidate for 2 edittexts. Make form raise error then call function form.closeAllErrors(). You'll get class cast exception at
public void closeAllErrors() {
for (AbstractValidate av : mValidates) {
Validate v = (Validate) av; //Error here.
v.getSource().setError(null);
}
}