Skip to content

Commit

Permalink
Add helper for company name and title
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixsm committed May 17, 2017
1 parent 41cde83 commit 458c6ab
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ String getFamilyName() {
return getString(c, ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME);
}

String getCompanyName() {
return getString(c, ContactsContract.CommonDataKinds.Organization.COMPANY);
}

String getCompanyTitle() {
return getString(c, ContactsContract.CommonDataKinds.Organization.TITLE);
}

PhoneNumber getPhoneNumber() {
String number = getString(c, ContactsContract.CommonDataKinds.Phone.NUMBER);
if (number == null) {
Expand Down

0 comments on commit 458c6ab

Please sign in to comment.