Merge " SettingLib: Fix possible issue on bonding to second device" into tm-qpr-dev am: 7723413b0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20833220 Change-Id: I9145937f4bc7459311054239b41e79dd66f2cb91 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -383,7 +383,10 @@ public class CachedBluetoothDeviceManager {
|
|||||||
Log.d(TAG, "Bond " + device.getAnonymizedAddress() + " by CSIP");
|
Log.d(TAG, "Bond " + device.getAnonymizedAddress() + " by CSIP");
|
||||||
mOngoingSetMemberPair = device;
|
mOngoingSetMemberPair = device;
|
||||||
syncConfigFromMainDevice(device, groupId);
|
syncConfigFromMainDevice(device, groupId);
|
||||||
device.createBond(BluetoothDevice.TRANSPORT_LE);
|
if (!device.createBond(BluetoothDevice.TRANSPORT_LE)) {
|
||||||
|
Log.d(TAG, "Bonding could not be started");
|
||||||
|
mOngoingSetMemberPair = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void syncConfigFromMainDevice(BluetoothDevice device, int groupId) {
|
private void syncConfigFromMainDevice(BluetoothDevice device, int groupId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user