Change Exchange username validation to exclude bare backslash
* Fixes #2121422 Change-Id: Id55dfa365b83d725926e3e7dcd7b646256863aa1
This commit is contained in:
parent
da8836a76c
commit
ac37c5c15a
@ -196,6 +196,11 @@ public class AccountSetupExchange extends Activity implements OnClickListener,
|
||||
outState.putParcelable(EXTRA_ACCOUNT, mAccount);
|
||||
}
|
||||
|
||||
private boolean usernameFieldValid(EditText usernameView) {
|
||||
return Utility.requiredFieldValid(usernameView) &&
|
||||
!usernameView.getText().toString().equals("\\");
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare a cached dialog with current values (e.g. account name)
|
||||
*/
|
||||
@ -240,7 +245,7 @@ public class AccountSetupExchange extends Activity implements OnClickListener,
|
||||
* NOTE: Does it make sense to extract & combine with similar code in AccountSetupIncoming?
|
||||
*/
|
||||
private void validateFields() {
|
||||
boolean enabled = Utility.requiredFieldValid(mUsernameView)
|
||||
boolean enabled = usernameFieldValid(mUsernameView)
|
||||
&& Utility.requiredFieldValid(mPasswordView)
|
||||
&& Utility.requiredFieldValid(mServerView);
|
||||
if (enabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user