Merge change 22302 into eclair

* changes:
  Set BondState to Canceled when user cancels pairing.
This commit is contained in:
Android (Google) Code Review
2009-08-21 11:54:15 -07:00

View File

@@ -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) {