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

Commit 9089f169 authored by Pradeep Panigrahi's avatar Pradeep Panigrahi Committed by Steve Kondik
Browse files

Bluetooth: Do not send Pairing cancel intent during ACL disconnection

Add change to not send pairing cancel intent after acl disconnection
as this case is already handled in stack.

CRs-fixed: 946072

Change-Id: I0a3abc2bffe09bb48d042664e1edf017a8fa3fcd
parent b9f0d694
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -358,12 +358,6 @@ final class RemoteDevices {
            }
            debugLog("aclStateChangeCallback: State:Connected to Device:" + device);
        } else {
            if (device.getBondState() == BluetoothDevice.BOND_BONDING) {
                /*Broadcasting PAIRING_CANCEL intent as well in this case*/
                intent = new Intent(BluetoothDevice.ACTION_PAIRING_CANCEL);
                intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device);
                mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_PERM);
            }
            if ((state == BluetoothAdapter.STATE_BLE_ON || state == BluetoothAdapter.STATE_BLE_TURNING_OFF) &&
                (mBleOnDevices.contains(device))) {
                intent = new Intent(BluetoothAdapter.ACTION_BLE_ACL_DISCONNECTED);