am f89b69ab
: Merge "When adding an account, permit precisely 1 email address." into jb-ub-mail-ur10
* commit 'f89b69abb0d997fc09bccff03fb3db0419f59430': When adding an account, permit precisely 1 email address.
This commit is contained in:
commit
2650d5372a
@ -16,10 +16,10 @@
|
||||
|
||||
package com.android.email;
|
||||
|
||||
import com.android.emailcommon.mail.Address;
|
||||
|
||||
import android.widget.AutoCompleteTextView.Validator;
|
||||
|
||||
import com.android.emailcommon.mail.Address;
|
||||
|
||||
public class EmailAddressValidator implements Validator {
|
||||
@Override
|
||||
public CharSequence fixText(CharSequence invalidText) {
|
||||
@ -28,6 +28,6 @@ public class EmailAddressValidator implements Validator {
|
||||
|
||||
@Override
|
||||
public boolean isValid(CharSequence text) {
|
||||
return Address.parse(text.toString()).length > 0;
|
||||
return Address.parse(text.toString()).length == 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user