diff options
author | Chiao Cheng <chiaocheng@google.com> | 2013-09-12 16:48:18 -0700 |
---|---|---|
committer | Chiao Cheng <chiaocheng@google.com> | 2013-09-12 16:48:18 -0700 |
commit | e6933be00d2ecc266612a374a62e05352937408e (patch) | |
tree | 042d00b8b481904a955f0e85baeb44b71abefd82 /src/com/android/dialer/calllog/ContactInfo.java | |
parent | 294de01646354fa7fcb2c4148cacf72256907da9 (diff) |
Changes to detect whether a call is voicemail.
To determine whether to show discovery for caller id.
Bug: 10723396
Change-Id: I924e9a8c05dced4f1ea239c0db71c131bb662da7
Diffstat (limited to 'src/com/android/dialer/calllog/ContactInfo.java')
-rw-r--r-- | src/com/android/dialer/calllog/ContactInfo.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/ContactInfo.java b/src/com/android/dialer/calllog/ContactInfo.java index ac858df87..2006744d3 100644 --- a/src/com/android/dialer/calllog/ContactInfo.java +++ b/src/com/android/dialer/calllog/ContactInfo.java @@ -20,6 +20,7 @@ import android.net.Uri; import android.text.TextUtils; import com.android.contacts.common.util.UriUtils; +import com.google.common.base.Objects; /** * Information for a contact as needed by the Call Log. @@ -70,4 +71,12 @@ public class ContactInfo { if (!UriUtils.areEqual(photoUri, other.photoUri)) return false; return true; } + + @Override + public String toString() { + return Objects.toStringHelper(this).add("lookupUri", lookupUri).add("name", name).add( + "type", type).add("label", label).add("number", number).add("formattedNumber", + formattedNumber).add("normalizedNumber", normalizedNumber).add("photoId", photoId) + .add("photoUri", photoUri).toString(); + } } |