diff options
author | Yorke Lee <yorkelee@google.com> | 2014-02-21 10:02:18 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-02-28 16:30:47 -0800 |
commit | 56cb0efa5eda1670077e66fc0e8c79478d0c1c67 (patch) | |
tree | da64925c0d47acb56889f3226859b4843bf0dcfe /src/com/android/dialer/service | |
parent | 8b58491588d5128f23e5a6eee37baad77839b2ca (diff) |
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
Diffstat (limited to 'src/com/android/dialer/service')
-rw-r--r-- | src/com/android/dialer/service/CachedNumberLookupService.java | 2 |
1 files changed, 2 insertions, 0 deletions
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); /** |