diff options
author | Yorke Lee <yorkelee@google.com> | 2014-08-29 18:39:16 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-08-29 18:40:09 -0700 |
commit | 282f368069a27fc18845bcd6ce45f5a1044406e3 (patch) | |
tree | cd0ad9a324f62eae76a12a8a09d041d29bbbc96f /telephony/java | |
parent | cf2a75a66ecf9fed2601c85c0753195744d1c6bd (diff) | |
download | frameworks_base-282f368069a27fc18845bcd6ce45f5a1044406e3.zip frameworks_base-282f368069a27fc18845bcd6ce45f5a1044406e3.tar.gz frameworks_base-282f368069a27fc18845bcd6ce45f5a1044406e3.tar.bz2 |
Add lookup key to callerInfo
Bug: 16825519
Change-Id: I71c4b2366caa3351b1f2cedd1c341f9ac909b7ea
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/com/android/internal/telephony/CallerInfo.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/CallerInfo.java b/telephony/java/com/android/internal/telephony/CallerInfo.java index d93c282..88e5bd6 100644 --- a/telephony/java/com/android/internal/telephony/CallerInfo.java +++ b/telephony/java/com/android/internal/telephony/CallerInfo.java @@ -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)) { |