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

Commit 13582f73 authored by William Escande's avatar William Escande Committed by Automerger Merge Worker
Browse files

Disable in-band ring if more than one device is connected am: 35157df2

parents 22252a1c 35157df2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2018,8 +2018,7 @@ public class HeadsetService extends ProfileService {
    public void onConnectionStateChangedFromStateMachine(BluetoothDevice device, int fromState,
            int toState) {
        synchronized (mStateMachines) {
            List<BluetoothDevice> audioConnectableDevices =
                    getDevicesMatchingConnectionStates(CONNECTING_CONNECTED_STATES);
            List<BluetoothDevice> audioConnectableDevices = getConnectedDevices();
            if (fromState != BluetoothProfile.STATE_CONNECTED
                    && toState == BluetoothProfile.STATE_CONNECTED) {
                if (audioConnectableDevices.size() > 1) {