am ac37c5c1
: Change Exchange username validation to exclude bare backslash
Merge commit 'ac37c5c15a3fd4f91f264800966da8e28f338c87' into eclair-plus-aosp * commit 'ac37c5c15a3fd4f91f264800966da8e28f338c87': Change Exchange username validation to exclude bare backslash
This commit is contained in:
commit
16e4608ab5
@ -196,6 +196,11 @@ public class AccountSetupExchange extends Activity implements OnClickListener,
|
|||||||
outState.putParcelable(EXTRA_ACCOUNT, mAccount);
|
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)
|
* 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?
|
* NOTE: Does it make sense to extract & combine with similar code in AccountSetupIncoming?
|
||||||
*/
|
*/
|
||||||
private void validateFields() {
|
private void validateFields() {
|
||||||
boolean enabled = Utility.requiredFieldValid(mUsernameView)
|
boolean enabled = usernameFieldValid(mUsernameView)
|
||||||
&& Utility.requiredFieldValid(mPasswordView)
|
&& Utility.requiredFieldValid(mPasswordView)
|
||||||
&& Utility.requiredFieldValid(mServerView);
|
&& Utility.requiredFieldValid(mServerView);
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user