OSDN Git Service

Set BondState to Canceled when user cancels pairing.
authorJaikumar Ganesh <jaikumar@google.com>
Fri, 21 Aug 2009 18:50:17 +0000 (11:50 -0700)
committerJaikumar Ganesh <jaikumar@google.com>
Fri, 21 Aug 2009 18:51:12 +0000 (11:51 -0700)
core/java/android/server/BluetoothService.java

index acee3af..a7c0425 100644 (file)
@@ -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) {