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

Commit ef4c0809 authored by Jack He's avatar Jack He Committed by android-build-merger
Browse files

HFP: Indicate profile as connected after SLC is established

am: 2887c337

Change-Id: Ieadcc25cbc9e147541a873c28d6961c6d5689543
parents 5f74f769 2887c337
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -487,12 +487,11 @@ public class HeadsetService extends ProfileService {
        // TODO(BT) BLUETOOTH or BLUETOOTH_ADMIN permission
        enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");
        if (!mStateMachine.isConnected()) {
            return false;
        }
        if (!mStateMachine.isSlcConnected()) {
            Log.w(TAG, "connectAudio: profile not connected");
            return false;
        }
        if (mStateMachine.isAudioOn()) {
            Log.w(TAG, "connectAudio: audio is already ON");
            return false;
        }
        mStateMachine.sendMessage(HeadsetStateMachine.CONNECT_AUDIO);
+162 −193

File changed.

Preview size limit exceeded, changes collapsed.