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

Commit f9056321 authored by Mallikarjuna GB's avatar Mallikarjuna GB Committed by Android Git Automerger
Browse files

am 10c1bd2a: Handle startScoUsingVirtualVoiceCall in HeadsetService

* commit '10c1bd2a':
  Handle startScoUsingVirtualVoiceCall in HeadsetService
parents 21342caa 10c1bd2a
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -472,11 +472,8 @@ public class HeadsetService extends ProfileService {
    }

    boolean startScoUsingVirtualVoiceCall(BluetoothDevice device) {
        int connectionState = mStateMachine.getConnectionState(device);
        if (connectionState != BluetoothProfile.STATE_CONNECTED &&
            connectionState != BluetoothProfile.STATE_CONNECTING) {
            return false;
        }
        /* Do not ignore request if HSM state is still Disconnected or
           Pending, it will be processed when transitioned to Connected */
        mStateMachine.sendMessage(HeadsetStateMachine.VIRTUAL_CALL_START, device);
        return true;
    }