mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-04 16:45:09 -05:00
Added some comments
This commit is contained in:
parent
ba24fdc742
commit
57be868668
@ -135,21 +135,27 @@ public class ContactsSdk3_4 extends com.fsck.k9.helper.Contacts
|
|||||||
final String[] args;
|
final String[] args;
|
||||||
if (constraint == null)
|
if (constraint == null)
|
||||||
{
|
{
|
||||||
where = null;
|
where = Contacts.ContactMethods.KIND + " = " + Contacts.KIND_EMAIL;
|
||||||
args = null;
|
args = null;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
where = Contacts.ContactMethods.KIND + " = " + Contacts.KIND_EMAIL +
|
where = Contacts.ContactMethods.KIND + " = " + Contacts.KIND_EMAIL +
|
||||||
" AND" + "(" +
|
" AND " +
|
||||||
|
"(" +
|
||||||
|
// Match if name starts with "constraint"
|
||||||
Contacts.People.NAME + " LIKE ?" +
|
Contacts.People.NAME + " LIKE ?" +
|
||||||
") OR (" +
|
" OR " +
|
||||||
|
// Match if name contains a word that starts with "constraint"
|
||||||
Contacts.People.NAME + " LIKE ?" +
|
Contacts.People.NAME + " LIKE ?" +
|
||||||
") OR (" +
|
" OR " +
|
||||||
|
// Match if phonetic name starts with "constraint"
|
||||||
Contacts.People.PHONETIC_NAME + " LIKE ?" +
|
Contacts.People.PHONETIC_NAME + " LIKE ?" +
|
||||||
") OR (" +
|
" OR " +
|
||||||
|
// Match if phonetic name contains a word that starts with "constraint"
|
||||||
Contacts.People.PHONETIC_NAME + " LIKE ?" +
|
Contacts.People.PHONETIC_NAME + " LIKE ?" +
|
||||||
") OR (" +
|
" OR " +
|
||||||
|
// Match if email address starts with "constraint"
|
||||||
Contacts.ContactMethods.DATA + " LIKE ?" +
|
Contacts.ContactMethods.DATA + " LIKE ?" +
|
||||||
")";
|
")";
|
||||||
final String filter = constraint.toString() + "%";
|
final String filter = constraint.toString() + "%";
|
||||||
|
Loading…
Reference in New Issue
Block a user