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

Commit 7633b894 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Set the bonding for incoming connections only when authentication is requested.

Change-Id: Ic44ac0e6dedcb310b0cf47020e5c2ff3d0a4459a
parent dee76be4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -247,7 +247,6 @@ class BluetoothEventLoop {
                addDevice(address, properties);
            }
        }
        mBluetoothService.getBondState().setBondState(address, BluetoothDevice.BOND_BONDING);
        return;
    }

@@ -404,6 +403,9 @@ class BluetoothEventLoop {
            mBluetoothService.cancelPairingUserInput(address);
            return null;
        }
        // Set state to BONDING, for incoming connections it will be set here.
        // For outgoing connections, it gets set when call createBond.
        mBluetoothService.getBondState().setBondState(address, BluetoothDevice.BOND_BONDING);
        return address;
    }