JAVA 18
ShowError By Guest on 31st March 2017 05:49:33 AM
  1.     private boolean showErrors(String email, String password, String username) {
  2.         boolean isValid = true;
  3.  
  4.         if (email.isEmpty() || !isValidEmail(email)) {
  5.             view.showEmailError();
  6.             isValid = false;
  7.         }
  8.         if (password.isEmpty() || !isValidPassword(password)) {
  9.             view.showPasswordError();
  10.             isValid = false;
  11.         }
  12.         if (username.isEmpty()) {
  13.             view.showUsernameError();
  14.             isValid = false;
  15.         }
  16.  
  17.         Timber.i("isValid == %s", isValid);
  18.         return isValid;
  19.     }

Paste is for source code and general debugging text.

Login or Register to delete or keep track of your pastes.