ragunathjawahar / android-saripaar

UI form validation library for Android
Apache License 2.0
3.22k stars 460 forks source link

@Pattern annotation not calling PatternRule.isValid() #166

Closed ben-xx closed 8 years ago

ben-xx commented 8 years ago
@NotEmpty
@Pattern(regex = "[0-9]+")
@Bind(R.id.fence_add_latlon_edittext)
EditText mFenceAddLatLon;

(note: using ButterKnife for binding widgets)

@NotEmpty annotation calls isValid() in NotEmptyRule.java, but @Pattern never calls isValid() within PatternRule.java.

Using 2.0.3

ben-xx commented 8 years ago

Sorry, looks like the issue was on my end with Android Studio 2.2 Instant Run not picking up Annotation changes in .java file.