From 56cb0efa5eda1670077e66fc0e8c79478d0c1c67 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 21 Feb 2014 10:02:18 -0800 Subject: Use new ContactPhotoManager APIs for letter tile avatars *Modify the following uses of ContactPhotoManager.loadPhoto in the following classes to include a DefaultImageRequest, populated with the contact's display name, lookupkey, and contact type as necessary CallDetailActivity CallLogAdapter PhoneFavoriteTileView *Add utility methods to ContactInfoHelper, to parse a lookupUri for a lookup key, as well as determine whether or not a contact is a business contact, from its sourceType field. *Add a sourceType field to PhoneCallDetails which can be used to track whether or not PhoneCallDetails belongs to a business contact *Add a lookupKey field to ContactInfo Bug: 13101785 Change-Id: If339a9c038f92a0212f8f8b45b5e3cc5f6442562 --- src/com/android/dialer/service/CachedNumberLookupService.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/com/android/dialer/service') diff --git a/src/com/android/dialer/service/CachedNumberLookupService.java b/src/com/android/dialer/service/CachedNumberLookupService.java index 5745c9ded..73fd8950e 100644 --- a/src/com/android/dialer/service/CachedNumberLookupService.java +++ b/src/com/android/dialer/service/CachedNumberLookupService.java @@ -33,6 +33,8 @@ public interface CachedNumberLookupService { public boolean isCacheUri(String uri); + public boolean isBusiness(int sourceType); + public boolean addPhoto(Context context, String number, byte[] photo); /** -- cgit v1.2.3