Minor fix for contacts
This commit is contained in:
parent
8807b9a63f
commit
236dfc6ccb
1 changed files with 9 additions and 3 deletions
|
@ -52,9 +52,13 @@ public class LinphoneContact extends AndroidContact
|
|||
|
||||
public LinphoneContact() {
|
||||
super();
|
||||
mAddresses = new ArrayList<>();
|
||||
mFullName = null;
|
||||
mFirstName = null;
|
||||
mLastName = null;
|
||||
mOrganization = null;
|
||||
mAndroidId = null;
|
||||
mThumbnailUri = null;
|
||||
mAddresses = new ArrayList<>();
|
||||
mPhotoUri = null;
|
||||
mHasSipAddress = false;
|
||||
mIsStarred = false;
|
||||
|
@ -488,7 +492,7 @@ public class LinphoneContact extends AndroidContact
|
|||
.query(
|
||||
ContactsContract.Data.CONTENT_URI,
|
||||
AsyncContactsLoader.PROJECTION,
|
||||
ContactsContract.Data.IN_VISIBLE_GROUP
|
||||
ContactsContract.Data.IN_DEFAULT_DIRECTORY
|
||||
+ " == 1 AND "
|
||||
+ ContactsContract.Data.CONTACT_ID
|
||||
+ " == "
|
||||
|
@ -513,7 +517,9 @@ public class LinphoneContact extends AndroidContact
|
|||
String data3 = c.getString(c.getColumnIndex("data3"));
|
||||
String data4 = c.getString(c.getColumnIndex("data4"));
|
||||
|
||||
setFullName(displayName);
|
||||
if (getFullName() == null) {
|
||||
setFullName(displayName);
|
||||
}
|
||||
|
||||
if (ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE.equals(mime)) {
|
||||
addNumberOrAddress(new LinphoneNumberOrAddress(data1, data4));
|
||||
|
|
Loading…
Reference in a new issue