Add lookup key to callerInfo

Bug: 16825519
Change-Id: I71c4b2366caa3351b1f2cedd1c341f9ac909b7ea
This commit is contained in:
Yorke Lee
2014-08-29 18:39:16 -07:00
parent cf2a75a66e
commit 282f368069

View File

@@ -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)) {