Improved previous commit
This commit is contained in:
parent
712341980c
commit
a3b9feaeaa
1 changed files with 1 additions and 7 deletions
|
@ -390,7 +390,6 @@ public class ContactsManager extends ContentObserver implements FriendListListen
|
|||
ContactsContract.Contacts.LOOKUP_KEY,
|
||||
ContactsContract.Contacts.DISPLAY_NAME_PRIMARY,
|
||||
Data.MIMETYPE,
|
||||
Data.IN_VISIBLE_GROUP,
|
||||
"data1", //Company, Phone or SIP Address
|
||||
"data2", //ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME
|
||||
"data3", //ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME
|
||||
|
@ -409,7 +408,7 @@ public class ContactsManager extends ContentObserver implements FriendListListen
|
|||
mActivity,
|
||||
ContactsContract.Data.CONTENT_URI,
|
||||
PROJECTION,
|
||||
null,
|
||||
Data.IN_VISIBLE_GROUP + " == 1",
|
||||
null,
|
||||
null
|
||||
);
|
||||
|
@ -465,11 +464,6 @@ public class ContactsManager extends ContentObserver implements FriendListListen
|
|||
String data2 = c.getString(c.getColumnIndex("data2"));
|
||||
String data3 = c.getString(c.getColumnIndex("data3"));
|
||||
String data4 = c.getString(c.getColumnIndex("data4"));
|
||||
int visible = c.getInt(c.getColumnIndex(Data.IN_VISIBLE_GROUP));
|
||||
|
||||
if (visible == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
nativeIds.add(id);
|
||||
LinphoneContact contact = mAndroidContactsCache.get(id);
|
||||
|
|
Loading…
Reference in a new issue