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

Commit 567c0a23 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh Committed by Android Git Automerger
Browse files

am 819a3e22: am c0cec624: Fix runtime reboot when connecting to a A2DP headset...

am 819a3e22: am c0cec624: Fix runtime reboot when connecting to a A2DP headset and user toggles BT state.
parents b43f427f 819a3e22
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -554,6 +554,7 @@ public class BluetoothA2dpService extends IBluetoothA2dp.Stub {
        if (!result) {
            if (deviceObjectPath != null) {
                String address = mBluetoothService.getAddressFromObjectPath(deviceObjectPath);
                if (address == null) return;
                BluetoothDevice device = mAdapter.getRemoteDevice(address);
                int state = getSinkState(device);
                handleSinkStateChange(device, state, BluetoothA2dp.STATE_DISCONNECTED);