From 61837ac821a8afb9defa71dccfb3e85cdeb1000b Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 16 Apr 2015 15:47:17 -0700 Subject: Fix setting callback. Bug: 20160491 Change-Id: I45c16b229eb521b91a4eab1394b5d2fbb75ec478 --- InCallUI/src/com/android/incallui/InCallPresenter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'InCallUI/src/com/android/incallui') diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java index 51cd11e6e..2b7540091 100644 --- a/InCallUI/src/com/android/incallui/InCallPresenter.java +++ b/InCallUI/src/com/android/incallui/InCallPresenter.java @@ -377,7 +377,7 @@ public class InCallPresenter implements CallList.Listener, // Since a call has been added we are no longer waiting for Telecom to send us a // call. setBoundAndWaitingForOutgoingCall(false, null); - call.addListener(mCallListener); + call.registerCallback(mCallCallback); } /** @@ -385,7 +385,7 @@ public class InCallPresenter implements CallList.Listener, * method invocation from InCallService. */ public void onCallRemoved(android.telecom.Call call) { - call.removeListener(mCallListener); + call.unregisterCallback(mCallCallback); } public void onCanAddCallChanged(boolean canAddCall) { -- cgit v1.2.3