summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-03-31 12:15:35 -0700
committerYorke Lee <yorkelee@google.com>2014-03-31 12:15:35 -0700
commit774c0a924d00544e40a61a6d3bd13e967c5fd428 (patch)
tree6a9cd21945cf7c0cb1b738ea76a62c9583c49b78 /src
parent64574e9d93c8bd2487f3d41ab253ae3d9cbce6ae (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/calllog/ContactInfoHelper.java2
1 files changed, 1 insertions, 1 deletions
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<String> 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;
}