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

Commit 282f3680 authored by Yorke Lee's avatar Yorke Lee
Browse files

Add lookup key to callerInfo

Bug: 16825519
Change-Id: I71c4b2366caa3351b1f2cedd1c341f9ac909b7ea
parent cf2a75a6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@ public class CallerInfo {
    public long contactIdOrZero;
    public boolean needUpdate;
    public Uri contactRefUri;
    public String lookupKey;

    /**
     * Contact display photo URI.  If a contact has no display photo but a thumbnail, it'll be
@@ -231,6 +232,12 @@ public class CallerInfo {
                    // the in-call UI, for example.)
                }

                // Contact lookupKey
                columnIndex = cursor.getColumnIndex(PhoneLookup.LOOKUP_KEY);
                if (columnIndex != -1) {
                    info.lookupKey = cursor.getString(columnIndex);
                }

                // Display photo URI.
                columnIndex = cursor.getColumnIndex(PhoneLookup.PHOTO_URI);
                if ((columnIndex != -1) && (cursor.getString(columnIndex) != null)) {