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:
Yu Ping Hu 2013-08-21 17:39:49 -07:00 committed by Android Git Automerger
commit 2650d5372a

View File

@ -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;
}
}