diff options
author | Andrew Lee <anwlee@google.com> | 2015-04-16 15:47:17 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-04-16 15:47:39 -0700 |
commit | 61837ac821a8afb9defa71dccfb3e85cdeb1000b (patch) | |
tree | 89eab0bd3180c83a53b82aa7d09b67e23776cef9 | |
parent | cfa9c2a5ac92fe62399cd4c92e54eace9459e3e7 (diff) |
Fix setting callback.
Bug: 20160491
Change-Id: I45c16b229eb521b91a4eab1394b5d2fbb75ec478
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallPresenter.java | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |