Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7723413b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge " SettingLib: Fix possible issue on bonding to second device" into tm-qpr-dev

parents 16a8a796 1fac43ea
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -383,7 +383,10 @@ public class CachedBluetoothDeviceManager {
        Log.d(TAG, "Bond " + device.getAnonymizedAddress() + " by CSIP");
        mOngoingSetMemberPair = device;
        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) {