Merge change 22302 into eclair
* changes: Set BondState to Canceled when user cancels pairing.
This commit is contained in:
@@ -1006,6 +1006,8 @@ public class BluetoothService extends IBluetooth.Stub {
|
|||||||
if (!BluetoothDevice.checkBluetoothAddress(address)) {
|
if (!BluetoothDevice.checkBluetoothAddress(address)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
mBondState.setBondState(address, BluetoothDevice.BOND_NOT_BONDED,
|
||||||
|
BluetoothDevice.UNBOND_REASON_AUTH_CANCELED);
|
||||||
address = address.toUpperCase();
|
address = address.toUpperCase();
|
||||||
Integer data = mEventLoop.getPasskeyAgentRequestData().remove(address);
|
Integer data = mEventLoop.getPasskeyAgentRequestData().remove(address);
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user