From be28ad8d9e961a64eca765253b4094f46cc8111c Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Wed, 5 Mar 2014 15:53:03 -0800 Subject: Fix for letter tile avatars not displaying properly in calllog DO NOT MERGE Renable an accidentally disabled line of code which would retrieve the lookup key from the lookup URI, allowing letter tile avatars to display with the correct color and letter. Bug: 13341898 Change-Id: Ic65352053234e37f580aa44d9ed459755c3913f1 (cherry picked from commit a5804f5b62bd87a0c8a35d7651a6862ecc1f220b) --- src/com/android/dialer/calllog/CallLogAdapter.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 175a7331d..aee24baad 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -642,11 +642,8 @@ public class CallLogAdapter extends GroupingListAdapter contactType = ContactPhotoManager.TYPE_BUSINESS; } - String lookupKey = info.lookupKey; - if (lookupUri != null) { - //lookupKey = ContactInfoHelper.getLookupKeyFromUri(lookupUri); - - } + String lookupKey = lookupUri == null ? null + : ContactInfoHelper.getLookupKeyFromUri(lookupUri); String nameForDefaultImage = null; if (TextUtils.isEmpty(name)) { -- cgit v1.2.3