Merge change 26366 into eclair
* changes: Set the bonding for incoming connections only when authentication is requested.
This commit is contained in:
@@ -247,7 +247,6 @@ class BluetoothEventLoop {
|
|||||||
addDevice(address, properties);
|
addDevice(address, properties);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mBluetoothService.getBondState().setBondState(address, BluetoothDevice.BOND_BONDING);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -404,6 +403,9 @@ class BluetoothEventLoop {
|
|||||||
mBluetoothService.cancelPairingUserInput(address);
|
mBluetoothService.cancelPairingUserInput(address);
|
||||||
return null;
|
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;
|
return address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user