From 774c0a924d00544e40a61a6d3bd13e967c5fd428 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 31 Mar 2014 12:15:35 -0700 Subject: Ensure contact identifier is consistent for all letter tile avatars The contact identifier used for letter tile avatar colors was different in the call log because it is decoded by UriUtils. Ensure that we pass in the encoded version to ContactPhotoManager. Bug: 13720625 Change-Id: Ifcb9a9ddcc9c46b3f98944babdcb976e56facfe9 --- src/com/android/dialer/calllog/ContactInfoHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java index dfe7aed79..5d99ef4fb 100644 --- a/src/com/android/dialer/calllog/ContactInfoHelper.java +++ b/src/com/android/dialer/calllog/ContactInfoHelper.java @@ -270,7 +270,7 @@ public class ContactInfoHelper { final List segments = lookupUri.getPathSegments(); // This returns the third path segment of the uri, where the lookup key is located. // See {@link android.provider.ContactsContract.Contacts#CONTENT_LOOKUP_URI}. - return (segments.size() < 3) ? null : segments.get(2); + return (segments.size() < 3) ? null : Uri.encode(segments.get(2)); } else { return null; } -- cgit v1.2.3