mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-15 05:55:06 -05:00
19 lines
435 B
Java
19 lines
435 B
Java
|
|
package com.android.email;
|
|
|
|
import com.android.email.mail.Address;
|
|
|
|
import android.util.Config;
|
|
import android.util.Log;
|
|
import android.widget.AutoCompleteTextView.Validator;
|
|
|
|
public class EmailAddressValidator implements Validator {
|
|
public CharSequence fixText(CharSequence invalidText) {
|
|
return "";
|
|
}
|
|
|
|
public boolean isValid(CharSequence text) {
|
|
return Address.parse(text.toString()).length > 0;
|
|
}
|
|
}
|