diff options
Diffstat (limited to 'src/com/android/contacts/common/model/Contact.java')
-rw-r--r-- | src/com/android/contacts/common/model/Contact.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/model/Contact.java b/src/com/android/contacts/common/model/Contact.java index d5ff0a32..74b5596d 100644 --- a/src/com/android/contacts/common/model/Contact.java +++ b/src/com/android/contacts/common/model/Contact.java @@ -304,6 +304,14 @@ public class Contact { return mDisplayNameSource; } + /** + * Used by various classes to determine whether or not this contact should be displayed as + * a business rather than a person. + */ + public boolean isDisplayNameFromOrganization() { + return DisplayNameSources.ORGANIZATION == mDisplayNameSource; + } + public long getPhotoId() { return mPhotoId; } |