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

Commit 0e090309 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Relax the requirement of making a DBUS call for creating the Bluez Device.

Bug: 2136464

When the bluez device is created, we get the onDeviceCreated signal.
We add it to our  cache when that happens. We can have a device created
even when its not bonded - as a result of OPP. So use this cache to avoid
a DBUS call to Bluez.

Change-Id: I9465da7d72a12a6888128ff40ac1fe598cbae3c3
parent 7a17f0c0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1406,7 +1406,9 @@ public class BluetoothService extends IBluetooth.Stub {
        }

        boolean ret;
        if (getBondState(address) == BluetoothDevice.BOND_BONDED) {
        // Just do the SDP if the device is already  created and UUIDs are not
        // NULL, else create the device and then do SDP.
        if (isRemoteDeviceInCache(address) && getRemoteUuids(address) != null) {
            String path = getObjectPathFromAddress(address);
            if (path == null) return false;