summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2013-09-14 20:39:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-14 20:39:45 +0000
commit9378ba4a2efd891f1862f363aebdef66e14900be (patch)
tree2367d8bd6bf099c08a8c35280146c54e515d3df9
parent88597f4409fd1e1c7c4eff7735728dc7129d62cb (diff)
parent03c572f066ec9ef28d6fbc7bdd56cab89626ac1c (diff)
Merge "Pass number to fetchImage as cache key" into klp-dev
-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 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 {