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

Commit 5a140ad7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Disable in-band ring if more than one device is connected"

parents a4af3246 1e9890eb
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) {