AwesomeValidation icon indicating copy to clipboard operation
AwesomeValidation copied to clipboard

Validation always returns true in FragmentActivity

Open chathuraed opened this issue 4 years ago • 1 comments

I coded a submit form inside DialogFragment. after the button pressed it always returns true. How can I use this validation in FragmentActivity

chathuraed avatar Oct 13 '20 07:10 chathuraed

@chathuraed Can you show your usage of addValidation(...)? I experienced the same issue but only when I use for example the one with the Activity as the first parameter. Try to use the addValidation(TextInputLayout, Pattern, String) instead (or any other suitable method signature). This worked in my case.

PhilippNowak96 avatar Mar 11 '21 16:03 PhilippNowak96