From cea8155e7532f50953353500980d655816ebc121 Mon Sep 17 00:00:00 2001 From: Santos Cordon Date: Mon, 12 Aug 2013 21:13:07 -0700 Subject: Use shared contact info cache to get data for the notification. Move around where ContactInfoCache is created so that StatusBarNotifier and CallCardPresenter will use the same shared instance. Change-Id: I6e0a7c48aa7a35a0f1a52b399eb127d69f41a879 --- InCallUI/src/com/android/incallui/CallCardPresenter.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'InCallUI/src/com/android/incallui/CallCardPresenter.java') diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index 105e3482a..8a855c104 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -35,7 +35,6 @@ import com.android.services.telephony.common.Call; public class CallCardPresenter extends Presenter implements InCallStateListener, AudioModeListener, ContactInfoCacheCallback { - private Context mContext; private AudioModeProvider mAudioModeProvider; private ContactInfoCache mContactInfoCache; private Call mPrimary; @@ -67,9 +66,8 @@ public class CallCardPresenter extends Presenter mSecondaryContactInfo = null; } - public void setContext(Context context) { - mContext = context; - mContactInfoCache = new ContactInfoCache(mContext); + public void setContactInfoCache(ContactInfoCache cache) { + mContactInfoCache = cache; startContactInfoSearch(); } -- cgit v1.2.3