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

Commit 6ce9a26a authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Disable in-band ring if more than one device is connected" am: 5a140ad7

parents bfdbcb3b 5a140ad7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1896,8 +1896,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) {