Skip to content

Commit

Permalink
Add company name and title fetch to the updateContact method
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixsm committed May 17, 2017
1 parent 458c6ab commit de527a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions contacts/src/main/java/com/github/tamir7/contacts/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,18 @@ private void updateContact(Contact contact, CursorHelper helper) {
if (familyName != null) {
contact.addFamilyName(familyName);
}
} else if (mimeType.equals(ContactsContract.CommonDataKinds.Organization.CONTENT_ITEM_TYPE)) {
String companyName = helper.getCompanyName();

if (companyName != null) {
contact.addCompanyName(companyName);
}

String companyTitle = helper.getCompanyTitle();

if (companyTitle != null) {
contact.addCompanyTitle(companyTitle);
}
}
}

Expand Down

0 comments on commit de527a1

Please sign in to comment.