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

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

Merge "Bluetooth: Update SCO disconnect properly."

parents 7f852ac1 cdb31c4f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -943,10 +943,9 @@ final class HeadsetStateMachine extends StateMachine {
                // fall through
                case DISCONNECT_AUDIO:
                    if (disconnectAudioNative(getByteAddress(mCurrentDevice))) {
                        mAudioState = BluetoothHeadset.STATE_AUDIO_DISCONNECTED;
                        mAudioManager.setBluetoothScoOn(false);
                        broadcastAudioState(mCurrentDevice, BluetoothHeadset.STATE_AUDIO_DISCONNECTED,
                                            BluetoothHeadset.STATE_AUDIO_CONNECTED);
                        log("Disconnecting SCO audio");
                    } else {
                        Log.e(TAG, "disconnectAudioNative failed");
                    }
                    break;
                case VOICE_RECOGNITION_START: