When adding an account, permit precisely 1 email address.
Bug: 10357463 Change-Id: I310647e48f21be2942f2ad375b0e2e19c1af9015
This commit is contained in:
parent
e568f1bd37
commit
aba5a30c78
|
@ -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