diff options
author | Rohit Yengisetty <rohit@cyngn.com> | 2016-03-16 14:06:04 -0700 |
---|---|---|
committer | Richard MacGregor <rmacgregor@cyngn.com> | 2016-04-08 10:29:35 -0700 |
commit | a5eb044a064d9798ecf5a8112b3f5bc543ff414b (patch) | |
tree | 40d55096c98204db15257eda4071cc7429ea3ab2 | |
parent | d57745ba51d27e120f52604a973041527c6ca20f (diff) | |
download | android_packages_apps_InCallUI-a5eb044a064d9798ecf5a8112b3f5bc543ff414b.tar.gz android_packages_apps_InCallUI-a5eb044a064d9798ecf5a8112b3f5bc543ff414b.tar.bz2 android_packages_apps_InCallUI-a5eb044a064d9798ecf5a8112b3f5bc543ff414b.zip |
Add RequestOrigin to ContactInfoCache
Change-Id: I890fcbbc5e605234e84d4f044070e010085bc479
-rw-r--r-- | src/com/android/incallui/ContactInfoCache.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/incallui/ContactInfoCache.java b/src/com/android/incallui/ContactInfoCache.java index 293904ef..5fc8d73f 100644 --- a/src/com/android/incallui/ContactInfoCache.java +++ b/src/com/android/incallui/ContactInfoCache.java @@ -48,6 +48,7 @@ import com.cyanogen.ambient.incall.util.InCallHelper; import com.cyanogen.lookup.phonenumber.contract.LookupProvider; import com.cyanogen.lookup.phonenumber.provider.LookupProviderImpl; import com.cyanogen.lookup.phonenumber.request.LookupRequest; +import com.cyanogen.lookup.phonenumber.request.LookupRequest.RequestOrigin; import com.cyanogen.lookup.phonenumber.response.LookupResponse; import com.cyanogen.lookup.phonenumber.response.StatusCode; @@ -267,7 +268,11 @@ public class ContactInfoCache implements ContactsAsyncHelper.OnImageLoadComplete Context.TELEPHONY_SERVICE)).getSimCountryIso().toUpperCase(); String numberE164 = PhoneNumberUtils.formatNumberToE164(cacheEntry.number, countryIso); - LookupRequest request = new LookupRequest(numberE164, new LookupResultCallback(callId)); + RequestOrigin origin = isIncoming ? RequestOrigin.INCOMING_CALL : + RequestOrigin.OUTGOING_CALL; + LookupRequest request = new LookupRequest(numberE164, + new LookupResultCallback(callId), + origin); mLookupProvider.fetchInfo(request); sendInfoNotifications(callId, cacheEntry); clearCallbacks = false; |