Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 633a9d9d authored by Masaho Nishikawa's avatar Masaho Nishikawa Committed by takeshi tanigawa
Browse files

User cannot reject a waiting call after a switch call fails

When a switch call fails, pass that fact up the stack as a connection
event.

Test: Manual - Verify that incoming call can be rejected after switch
call is failed.
Bug: 143918738

Change-Id: Ic6668c012bd9811edcee5680db4f198e7418bc32
parent ab72005d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1468,6 +1468,13 @@ public class GsmCdmaCallTracker extends CallTracker {
                if (isPhoneTypeGsm()) {
                    ar = (AsyncResult) msg.obj;
                    if (ar.exception != null) {
                        if (msg.what == EVENT_SWITCH_RESULT) {
                            Connection connection = mForegroundCall.getLatestConnection();
                            if (connection != null) {
                                connection.onConnectionEvent(
                                        android.telecom.Connection.EVENT_CALL_SWITCH_FAILED, null);
                            }
                        }
                        mPhone.notifySuppServiceFailed(getFailedService(msg.what));
                    }
                    operationComplete();