diff options
author | Brandon Maxwell <maxwelb@google.com> | 2015-11-04 21:52:42 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-11-04 21:52:42 +0000 |
commit | 2155a2f4fdc8d977ac1c33f7223b1ba4b55aee9e (patch) | |
tree | ea6b2f0f808add879b83afffa2b0df3662ef5c7e /InCallUI | |
parent | 90c0f0508e1173f7d45f3d165ce93760b69ea992 (diff) | |
parent | 5e0d2d1c7ddac7be7c814492441bbde54fba8ca9 (diff) |
Merge "Retrieving nameAlternative for ContactInfo" into ub-contactsdialer-a-dev
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallerInfo.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfo.java b/InCallUI/src/com/android/incallui/CallerInfo.java index 3ddeb71b1..2ed5722aa 100644 --- a/InCallUI/src/com/android/incallui/CallerInfo.java +++ b/InCallUI/src/com/android/incallui/CallerInfo.java @@ -31,6 +31,7 @@ import android.text.TextUtils; import com.android.contacts.common.util.PhoneNumberHelper; import com.android.contacts.common.util.TelephonyManagerUtils; +import com.android.dialer.calllog.ContactInfoHelper; /** * Looks up caller information for the given phone number. @@ -177,6 +178,12 @@ public class CallerInfo { info.name = cursor.getString(columnIndex); } + columnIndex = cursor.getColumnIndex(PhoneLookup.LOOKUP_KEY); + if (columnIndex != -1) { + info.nameAlternative = ContactInfoHelper.lookUpDisplayNameAlternative( + context, cursor.getString(columnIndex)); + } + // Look for the number columnIndex = cursor.getColumnIndex(PhoneLookup.NUMBER); if (columnIndex != -1) { |