am 34ca22d2: Merge change 26366 into eclair

Merge commit '34ca22d25303633c855a738409ea2f8e3f79a713' into eclair-plus-aosp

* commit '34ca22d25303633c855a738409ea2f8e3f79a713':
  Set the bonding for incoming connections only when authentication is requested.
This commit is contained in:
Jaikumar Ganesh
2009-09-22 13:08:08 -07:00
committed by Android Git Automerger

View File

@@ -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;
}