diff options
-rw-r--r-- | InCallUI/src/com/android/incallui/ContactInfoCache.java | 3 | ||||
-rw-r--r-- | InCallUI/src/com/android/incallui/service/PhoneNumberService.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/ContactInfoCache.java b/InCallUI/src/com/android/incallui/ContactInfoCache.java index 788f4e4a9..2c033e98b 100644 --- a/InCallUI/src/com/android/incallui/ContactInfoCache.java +++ b/InCallUI/src/com/android/incallui/ContactInfoCache.java @@ -240,7 +240,8 @@ public class ContactInfoCache implements ContactsAsyncHelper.OnImageLoadComplete // If there's an associated image, fetch that if (info.getImageUrl() != null) { Log.d(TAG, "Contact lookup. Remote contact found, loading image."); - mPhoneNumberService.fetchImage(info.getImageUrl(), this); + mPhoneNumberService.fetchImage(info.getNormalizedNumber(), + info.getImageUrl(), this); } else { // Otherwise, we're done, so clear callbacks Log.d(TAG, "Contact lookup. Remote contact found, no image."); diff --git a/InCallUI/src/com/android/incallui/service/PhoneNumberService.java b/InCallUI/src/com/android/incallui/service/PhoneNumberService.java index 279593da2..942bf422f 100644 --- a/InCallUI/src/com/android/incallui/service/PhoneNumberService.java +++ b/InCallUI/src/com/android/incallui/service/PhoneNumberService.java @@ -34,10 +34,11 @@ public interface PhoneNumberService { /** * Get an image asynchronously. * + * @param number The phone number for the image. * @param url The url to fetch the image from. * @param listener The listener to notify when the image lookup is complete. */ - public void fetchImage(String url, ImageLookupListener listener); + public void fetchImage(String number, String url, ImageLookupListener listener); public interface NumberLookupListener { |