am 9395b465
: Merge "Fix to get A2DP to connect after unpairing" into gingerbread
Merge commit '9395b4656aca4b00d080ada89a44631459ad7b85' into gingerbread-plus-aosp * commit '9395b4656aca4b00d080ada89a44631459ad7b85': Fix to get A2DP to connect after unpairing
This commit is contained in:
@ -414,7 +414,13 @@ class BluetoothEventLoop {
|
||||
mBluetoothService.sendUuidIntent(address);
|
||||
} else if (name.equals("Paired")) {
|
||||
if (propValues[1].equals("true")) {
|
||||
mBluetoothService.getBondState().setBondState(address, BluetoothDevice.BOND_BONDED);
|
||||
// If locally initiated pairing, we will
|
||||
// not go to BOND_BONDED state until we have received a
|
||||
// successful return value in onCreatePairedDeviceResult
|
||||
if (null == mBluetoothService.getBondState().getPendingOutgoingBonding()) {
|
||||
mBluetoothService.getBondState().setBondState(address,
|
||||
BluetoothDevice.BOND_BONDED);
|
||||
}
|
||||
} else {
|
||||
mBluetoothService.getBondState().setBondState(address,
|
||||
BluetoothDevice.BOND_NONE);
|
||||
|
Reference in New Issue
Block a user