Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2155a2f4 authored by Brandon Maxwell's avatar Brandon Maxwell Committed by Android (Google) Code Review
Browse files

Merge "Retrieving nameAlternative for ContactInfo" into ub-contactsdialer-a-dev

parents 90c0f050 5e0d2d1c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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) {