Skip to content
Snippets Groups Projects
Commit 1ea78d92 authored by Jean Chalard's avatar Jean Chalard
Browse files

Stop using raw e-mail addresses as names in contacts dict.

Bug: 4590281
Change-Id: I37016dd066efa1463077c67e05218148cbb67df4
parent 601b72cb
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ public class ContactsDictionary extends ExpandableDictionary {
while (!cursor.isAfterLast()) {
String name = cursor.getString(INDEX_NAME);
if (name != null) {
if (name != null && -1 == name.indexOf('@')) {
int len = name.length();
String prevWord = null;
......@@ -143,8 +143,6 @@ public class ContactsDictionary extends ExpandableDictionary {
if (wordLen < maxWordLength && wordLen > 1) {
super.addWord(word, FREQUENCY_FOR_CONTACTS);
if (!TextUtils.isEmpty(prevWord)) {
// TODO Do not add email address
// Not so critical
super.setBigram(prevWord, word,
FREQUENCY_FOR_CONTACTS_BIGRAM);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment