summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--InCallUI/src/com/android/incallui/ContactInfoCache.java3
-rw-r--r--InCallUI/src/com/android/incallui/service/PhoneNumberService.java3
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 9ad7c5415..bc5d7c9a1 100644
--- a/InCallUI/src/com/android/incallui/ContactInfoCache.java
+++ b/InCallUI/src/com/android/incallui/ContactInfoCache.java
@@ -239,7 +239,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 {