Remove handoff implementation
This CL removes the old handoff implementation. It also
plumbs the phoneAccountClicked event from InCallUI to the
call's ConnectionService.
Change-Id: Iab1595faaadcdfe428d97891d314babea21e9633
diff --git a/src/com/android/telecomm/InCallAdapter.java b/src/com/android/telecomm/InCallAdapter.java
index 7937e95..40bb61d 100644
--- a/src/com/android/telecomm/InCallAdapter.java
+++ b/src/com/android/telecomm/InCallAdapter.java
@@ -36,7 +36,7 @@
private static final int MSG_DISCONNECT_CALL = 5;
private static final int MSG_HOLD_CALL = 6;
private static final int MSG_UNHOLD_CALL = 7;
- private static final int MSG_HANDOFF_CALL = 8;
+ private static final int MSG_PHONE_ACCOUNT_CLICKED = 8;
private static final int MSG_MUTE = 9;
private static final int MSG_SET_AUDIO_ROUTE = 10;
private static final int MSG_CONFERENCE = 11;
@@ -120,12 +120,12 @@
Log.w(this, "unholdCall, unknown call id: %s", msg.obj);
}
break;
- case MSG_HANDOFF_CALL:
+ case MSG_PHONE_ACCOUNT_CLICKED:
call = mCallIdMapper.getCall(msg.obj);
if (call != null) {
- mCallsManager.startHandoffForCall(call);
+ mCallsManager.phoneAccountClicked(call);
} else {
- Log.w(this, "startHandoffForCall, unknown call id: %s", msg.obj);
+ Log.w(this, "phoneAccountClicked, unknown call id: %s", msg.obj);
}
break;
case MSG_MUTE:
@@ -234,9 +234,9 @@
/** {@inheritDoc} */
@Override
- public void handoffCall(String callId) {
+ public void phoneAccountClicked(String callId) {
mCallIdMapper.checkValidCallId(callId);
- mHandler.obtainMessage(MSG_HANDOFF_CALL, callId).sendToTarget();
+ mHandler.obtainMessage(MSG_PHONE_ACCOUNT_CLICKED, callId).sendToTarget();
}
/** {@inheritDoc} */