diff options
author | Santos Cordon <santoscordon@google.com> | 2013-08-12 21:13:07 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2013-08-13 17:22:53 +0000 |
commit | cea8155e7532f50953353500980d655816ebc121 (patch) | |
tree | a504d9ff328d02b6eb96484010a5a28d7c94adc2 /InCallUI/src/com/android/incallui/CallCardPresenter.java | |
parent | ad808068921ded06621fdb2a2fd42339efe62d79 (diff) |
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
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallCardPresenter.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardPresenter.java | 6 |
1 files changed, 2 insertions, 4 deletions
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<CallCardPresenter.CallCardUi> 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<CallCardPresenter.CallCardUi> mSecondaryContactInfo = null; } - public void setContext(Context context) { - mContext = context; - mContactInfoCache = new ContactInfoCache(mContext); + public void setContactInfoCache(ContactInfoCache cache) { + mContactInfoCache = cache; startContactInfoSearch(); } |