diff options
author | Evan Charlton <evanc@google.com> | 2014-05-14 12:35:47 -0700 |
---|---|---|
committer | Evan Charlton <evanc@google.com> | 2014-05-14 12:35:47 -0700 |
commit | 9a14ded169ed23223d4e7e8e5412ae4cc33a31d3 (patch) | |
tree | fcf802b80d487612465e7aec440dc184bc7faf44 /InCallUI/src/com/android/incallui/CallerInfoUtils.java | |
parent | 63c7d7678ff56b7366e4508a39a2d79f8b28c917 (diff) | |
parent | 248a6687e8075e9730217be73c54ee4f95501a0e (diff) |
resolved conflicts for merge of fc22ba88 to master
Change-Id: I686eff26a8172fe289866046f3b0a3f2392628c2
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallerInfoUtils.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallerInfoUtils.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfoUtils.java b/InCallUI/src/com/android/incallui/CallerInfoUtils.java index 3d2c5c4a7..d1238a37f 100644 --- a/InCallUI/src/com/android/incallui/CallerInfoUtils.java +++ b/InCallUI/src/com/android/incallui/CallerInfoUtils.java @@ -5,9 +5,6 @@ import android.content.Intent; import android.net.Uri; import android.text.TextUtils; -import com.android.services.telephony.common.Call; -import com.android.services.telephony.common.CallIdentification; - import java.util.Arrays; /** @@ -37,7 +34,7 @@ public class CallerInfoUtils { * more information is returned to the OnQueryCompleteListener (which contains * information about the phone number label, user's name, etc). */ - public static CallerInfo getCallerInfoForCall(Context context, CallIdentification call, + public static CallerInfo getCallerInfoForCall(Context context, Call call, CallerInfoAsyncQuery.OnQueryCompleteListener listener) { CallerInfo info = buildCallerInfo(context, call); String number = info.phoneNumber; @@ -52,17 +49,17 @@ public class CallerInfoUtils { return info; } - public static CallerInfo buildCallerInfo(Context context, CallIdentification identification) { + public static CallerInfo buildCallerInfo(Context context, Call call) { CallerInfo info = new CallerInfo(); // Store CNAP information retrieved from the Connection (we want to do this // here regardless of whether the number is empty or not). - info.cnapName = identification.getCnapName(); + info.cnapName = call.getCnapName(); info.name = info.cnapName; - info.numberPresentation = identification.getNumberPresentation(); - info.namePresentation = identification.getCnapNamePresentation(); + info.numberPresentation = call.getNumberPresentation(); + info.namePresentation = call.getCnapNamePresentation(); - String number = identification.getNumber(); + String number = call.getNumber(); if (!TextUtils.isEmpty(number)) { final String[] numbers = number.split("&"); number = numbers[0]; |