Skip to content

Commit

Permalink
Adicionado o clear do validators para a classe Validate
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcarvalho-q committed Jun 22, 2016
1 parent 16a5739 commit 3812761
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ public void closeError() {
closeError(formViewInterface);
}

@Override
public void clearValidators() {

validators.clear();
}

public static void closeError(TextInputLayout textInputLayout) {

if (textInputLayout != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ public interface ValidateInterface {
boolean isValid();

void closeError();

void clearValidators();
}
2 changes: 1 addition & 1 deletion sample/src/main/java/com/rca/sample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ private void setValidation() {
form.addValidate(emailValidate);
form.addValidate(checkBoxValidate);
}
}
}

0 comments on commit 3812761

Please sign in to comment.