Loading src/com/android/server/telecom/BluetoothPhoneServiceImpl.java +0 −2 Original line number Diff line number Diff line Loading @@ -514,8 +514,6 @@ public class BluetoothPhoneServiceImpl { mCallsManager.disconnectCall(activeCall); if (ringingCall != null) { mCallsManager.answerCall(ringingCall, VideoProfile.STATE_AUDIO_ONLY); } else if (heldCall != null) { mCallsManager.unholdCall(heldCall); } return true; } Loading src/com/android/server/telecom/CallsManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -1714,7 +1714,7 @@ public class CallsManager extends Call.ListenerBase } else { Call activeCall = (Call) mConnectionSvrFocusMgr.getCurrentFocusCall(); String activeCallId = null; if (activeCall != null) { if (activeCall != null && !activeCall.isLocallyDisconnecting()) { activeCallId = activeCall.getId(); if (canHold(activeCall)) { activeCall.hold("Swap to " + call.getId()); Loading tests/src/com/android/server/telecom/tests/BluetoothPhoneServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -681,7 +681,8 @@ public class BluetoothPhoneServiceTest extends TelecomTestCase { CHLD_TYPE_RELEASEACTIVE_ACCEPTHELD); verify(mMockCallsManager).disconnectCall(eq(activeCall)); verify(mMockCallsManager).unholdCall(eq(heldCall)); // Call unhold will occur as part of CallsManager auto-unholding the background call on its // own. assertEquals(didProcess, true); } Loading Loading
src/com/android/server/telecom/BluetoothPhoneServiceImpl.java +0 −2 Original line number Diff line number Diff line Loading @@ -514,8 +514,6 @@ public class BluetoothPhoneServiceImpl { mCallsManager.disconnectCall(activeCall); if (ringingCall != null) { mCallsManager.answerCall(ringingCall, VideoProfile.STATE_AUDIO_ONLY); } else if (heldCall != null) { mCallsManager.unholdCall(heldCall); } return true; } Loading
src/com/android/server/telecom/CallsManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -1714,7 +1714,7 @@ public class CallsManager extends Call.ListenerBase } else { Call activeCall = (Call) mConnectionSvrFocusMgr.getCurrentFocusCall(); String activeCallId = null; if (activeCall != null) { if (activeCall != null && !activeCall.isLocallyDisconnecting()) { activeCallId = activeCall.getId(); if (canHold(activeCall)) { activeCall.hold("Swap to " + call.getId()); Loading
tests/src/com/android/server/telecom/tests/BluetoothPhoneServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -681,7 +681,8 @@ public class BluetoothPhoneServiceTest extends TelecomTestCase { CHLD_TYPE_RELEASEACTIVE_ACCEPTHELD); verify(mMockCallsManager).disconnectCall(eq(activeCall)); verify(mMockCallsManager).unholdCall(eq(heldCall)); // Call unhold will occur as part of CallsManager auto-unholding the background call on its // own. assertEquals(didProcess, true); } Loading