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

Commit a04b0ed5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "BT: Respond ATD request with OK if dialing success."

parents 66a8e709 c94f9c03
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -3046,8 +3046,7 @@ final class HeadsetStateMachine extends StateMachine {
        mPhoneState.setCallState(callState.mCallState);
        mPhoneState.setNumber(callState.mNumber);
        mPhoneState.setType(callState.mType);
        if (mDialingOut) {
            if (callState.mCallState ==
        if (mDialingOut && callState.mCallState ==
                HeadsetHalConstants.CALL_STATE_DIALING) {
                BluetoothDevice device = getDeviceForMessage(DIALING_OUT_TIMEOUT);
                if (device == null) {
@@ -3056,12 +3055,8 @@ final class HeadsetStateMachine extends StateMachine {
                atResponseCodeNative(HeadsetHalConstants.AT_RESPONSE_OK,
                                                       0, getByteAddress(device));
                removeMessages(DIALING_OUT_TIMEOUT);
            } else if (callState.mCallState ==
                HeadsetHalConstants.CALL_STATE_ACTIVE || callState.mCallState
                == HeadsetHalConstants.CALL_STATE_IDLE) {
                mDialingOut = false;
        }
        }

        /* Set ActiveScoDevice to null when call ends */
        if ((mActiveScoDevice != null) && !isInCall() &&