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

Commit 84f91603 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge " SettingLib: Fix possible issue on bonding to second device" into...

Merge " SettingLib: Fix possible issue on bonding to second device" into tm-qpr-dev am: 7723413b am: 1b689891

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20833220



Change-Id: Ib2453e7bcf47428da44d085848c148dff87aceb9
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 5cd7ef0f 1b689891
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -390,7 +390,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) {