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

Commit 397d8f4f authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Set BondState to Canceled when user cancels pairing.

parent 78a0a37b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1006,6 +1006,8 @@ public class BluetoothService extends IBluetooth.Stub {
        if (!BluetoothDevice.checkBluetoothAddress(address)) {
            return false;
        }
        mBondState.setBondState(address, BluetoothDevice.BOND_NOT_BONDED,
                BluetoothDevice.UNBOND_REASON_AUTH_CANCELED);
        address = address.toUpperCase();
        Integer data = mEventLoop.getPasskeyAgentRequestData().remove(address);
        if (data == null) {