diff options
Diffstat (limited to 'java/com/android/incallui/CallCardPresenter.java')
-rw-r--r-- | java/com/android/incallui/CallCardPresenter.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/java/com/android/incallui/CallCardPresenter.java b/java/com/android/incallui/CallCardPresenter.java index 0ef0c9827..f3c2af6c7 100644 --- a/java/com/android/incallui/CallCardPresenter.java +++ b/java/com/android/incallui/CallCardPresenter.java @@ -48,6 +48,7 @@ import com.android.dialer.common.Assert; import com.android.dialer.common.LogUtil; import com.android.dialer.compat.ActivityCompat; import com.android.dialer.configprovider.ConfigProviderBindings; +import com.android.dialer.feedback.FeedbackComponent; import com.android.dialer.logging.DialerImpression; import com.android.dialer.logging.Logger; import com.android.dialer.multimedia.MultimediaData; @@ -151,6 +152,11 @@ public class CallCardPresenter return !TextUtils.isEmpty(call.getCallSubject()); } + private void addCallFeedbackListener(Context context) { + LogUtil.d("CallCardPresenter.addCallFeedbackListener", "Adding call feedback listener"); + CallList.getInstance().addListener(FeedbackComponent.get(context).getCallFeedbackListener()); + } + @Override public void onInCallScreenDelegateInit(InCallScreen inCallScreen) { Assert.isNotNull(inCallScreen); @@ -165,7 +171,7 @@ public class CallCardPresenter mInCallScreen.showNoteSentToast(); } call.addListener(this); - + addCallFeedbackListener(mContext); // start processing lookups right away. if (!call.isConferenceCall()) { startContactInfoSearch(call, true, call.getState() == DialerCall.State.INCOMING); |