From 458c6ab8fb23d8a62382291196d55f39a602fc8f Mon Sep 17 00:00:00 2001 From: Nixsm Date: Wed, 17 May 2017 13:39:40 -0300 Subject: [PATCH] Add helper for company name and title --- .../java/com/github/tamir7/contacts/CursorHelper.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contacts/src/main/java/com/github/tamir7/contacts/CursorHelper.java b/contacts/src/main/java/com/github/tamir7/contacts/CursorHelper.java index 68c7d0b..5015e2a 100644 --- a/contacts/src/main/java/com/github/tamir7/contacts/CursorHelper.java +++ b/contacts/src/main/java/com/github/tamir7/contacts/CursorHelper.java @@ -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) {