summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-09-22 16:00:12 -0400
committer Android (Google) Code Review <android-gerrit@google.com> 2009-09-22 16:00:12 -0400
commit34ca22d25303633c855a738409ea2f8e3f79a713 (patch)
tree5bec404b7c87275e27fa76e87fcdf6f3ef411a61
parent6c644f248f553898248b8a6948fac4d62874fedd (diff)
parent7633b89443986b35a701a6f41235707de2107bd0 (diff)
Merge change 26366 into eclair
* changes: Set the bonding for incoming connections only when authentication is requested.
-rw-r--r--core/java/android/server/BluetoothEventLoop.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/server/BluetoothEventLoop.java b/core/java/android/server/BluetoothEventLoop.java
index f9ab31c595b7..f3bc3a6b60e1 100644
--- a/core/java/android/server/BluetoothEventLoop.java
+++ b/core/java/android/server/BluetoothEventLoop.java
@@ -247,7 +247,6 @@ class BluetoothEventLoop {
addDevice(address, properties);
}
}
- mBluetoothService.getBondState().setBondState(address, BluetoothDevice.BOND_BONDING);
return;
}
@@ -404,6 +403,9 @@ class BluetoothEventLoop {
mBluetoothService.cancelPairingUserInput(address);
return null;
}
+ // Set state to BONDING, for incoming connections it will be set here.
+ // For outgoing connections, it gets set when call createBond.
+ mBluetoothService.getBondState().setBondState(address, BluetoothDevice.BOND_BONDING);
return address;
}