Closed jamiescode closed 9 years ago
If the EditText contains only whitespace then it passes validation due to checking if the field is empty. By using getTrimmedLength you can still check for the emptiness of the field, but also if they have entered only whitespace.
:+1:
If the EditText contains only whitespace then it passes validation due to checking if the field is empty. By using getTrimmedLength you can still check for the emptiness of the field, but also if they have entered only whitespace.