From 248a6687e8075e9730217be73c54ee4f95501a0e Mon Sep 17 00:00:00 2001 From: Sailesh Nepal Date: Tue, 1 Apr 2014 11:48:07 -0700 Subject: InCallUI - Use custom object to track Calls This is the first step in completely moving away from Telephony. This CL creates a custom Call object. Currently this is just a copy of the telephony Call object. I'll update various fields in individual CLs. This CL also deletes the old Telephony services. Bug: 13643568 Change-Id: Id1860a5df9706f2a7fddd40e70f0d693af7b04bd --- .../com/android/incallui/StatusBarNotifier.java | 31 ++++++++++------------ 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'InCallUI/src/com/android/incallui/StatusBarNotifier.java') diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java index 807e44b3d..2702dcf82 100644 --- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java +++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java @@ -34,7 +34,6 @@ import com.android.incallui.ContactInfoCache.ContactCacheEntry; import com.android.incallui.ContactInfoCache.ContactInfoCacheCallback; import com.android.incallui.InCallApp.NotificationBroadcastReceiver; import com.android.incallui.InCallPresenter.InCallState; -import com.android.services.telephony.common.Call; /** * This class adds Notifications to the status bar for the in-call experience. @@ -224,24 +223,22 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener { // This callback will always get called immediately and synchronously with whatever data // it has available, and may make a subsequent call later (same thread) if it had to // call into the contacts provider for more data. - mContactInfoCache.findInfo(call.getIdentification(), isIncoming, - new ContactInfoCacheCallback() { - - @Override - public void onContactInfoComplete(int callId, ContactCacheEntry entry) { - Call call = CallList.getInstance().getCall(callId); - if (call != null) { - buildAndSendNotification(call, entry); - } + mContactInfoCache.findInfo(call, isIncoming, new ContactInfoCacheCallback() { + @Override + public void onContactInfoComplete(int callId, ContactCacheEntry entry) { + Call call = CallList.getInstance().getCall(callId); + if (call != null) { + buildAndSendNotification(call, entry); } + } - @Override - public void onImageLoadComplete(int callId, ContactCacheEntry entry) { - Call call = CallList.getInstance().getCall(callId); - if (call != null) { - buildAndSendNotification(call, entry); - } - } }); + @Override + public void onImageLoadComplete(int callId, ContactCacheEntry entry) { + Call call = CallList.getInstance().getCall(callId); + if (call != null) { + buildAndSendNotification(call, entry); + } + } }); } /** -- cgit v1.2.3