Code cleanup.

This commit is contained in:
akwizgran
2015-12-16 15:55:50 +00:00
parent 52720c5c04
commit 886074e50e
2 changed files with 9 additions and 13 deletions

View File

@@ -186,7 +186,7 @@ OnEditorActionListener {
strengthMeter.setStrength(strength);
if (nicknameLength > MAX_AUTHOR_NAME_LENGTH)
nicknameEntry.setError(getString(R.string.name_too_long));
if (firstPassword.length() > 0 && strength < PasswordStrengthEstimator.WEAK)
if (firstPassword.length() > 0 && strength < WEAK)
passwordEntry.setError(getString(R.string.password_too_weak));
if (secondPassword.length() > 0 && !passwordsMatch)
passwordConfirmation.setError(getString(R.string.passwords_do_not_match));