diff options
author | Chiao Cheng <chiaocheng@google.com> | 2013-11-13 15:15:07 -0800 |
---|---|---|
committer | Chiao Cheng <chiaocheng@google.com> | 2013-11-13 15:15:07 -0800 |
commit | 1da816ac3ec55f83ca1e8728a28ebf11654328f2 (patch) | |
tree | ed087279d3f3f82f820246a26039c60be3deaa06 /InCallUI | |
parent | a01a9112d825d9299afe43a87b434025e2f519c5 (diff) |
Add callState parameter to reverse lookup requests.
This will provide contextual information to the server so that reverse lookup
can be turned off for outgoing calls.
Also add Gservices parameter so that additional query parameters can be added
in the future.
Bug: 11630566
Change-Id: I2186d73712e64e242e0f953f5d77125879c83148
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/ContactInfoCache.java | 3 | ||||
-rw-r--r-- | InCallUI/src/com/android/incallui/service/PhoneNumberService.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/ContactInfoCache.java b/InCallUI/src/com/android/incallui/ContactInfoCache.java index 45a38c7cf..448de7fed 100644 --- a/InCallUI/src/com/android/incallui/ContactInfoCache.java +++ b/InCallUI/src/com/android/incallui/ContactInfoCache.java @@ -173,7 +173,8 @@ public class ContactInfoCache implements ContactsAsyncHelper.OnImageLoadComplete mPhoneNumberService != null) { Log.d(TAG, "Contact lookup. Local contacts miss, checking remote"); final PhoneNumberServiceListener listener = new PhoneNumberServiceListener(callId); - mPhoneNumberService.getPhoneNumberInfo(cacheEntry.number, listener, listener); + mPhoneNumberService.getPhoneNumberInfo(cacheEntry.number, listener, listener, + isIncoming); } else if (cacheEntry.personUri != null) { Log.d(TAG, "Contact lookup. Local contact found, starting image load"); // Load the image with a callback to update the image state. diff --git a/InCallUI/src/com/android/incallui/service/PhoneNumberService.java b/InCallUI/src/com/android/incallui/service/PhoneNumberService.java index d5f809c3a..3ce84b9a2 100644 --- a/InCallUI/src/com/android/incallui/service/PhoneNumberService.java +++ b/InCallUI/src/com/android/incallui/service/PhoneNumberService.java @@ -31,7 +31,7 @@ public interface PhoneNumberService { * @param imageListener The listener to notify when the image lookup is complete. */ public void getPhoneNumberInfo(String phoneNumber, NumberLookupListener listener, - ImageLookupListener imageListener); + ImageLookupListener imageListener, boolean isIncoming); public interface NumberLookupListener { |