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

Commit 07cda4a0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Ensure device properties are non-null before checking if the device is...

Merge "Ensure device properties are non-null before checking if the device is bonding in RemoteDevices#fetchUuids"
parents 3691df5c 5106a199
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -698,8 +698,9 @@ final class RemoteDevices {
        }

        // If no UUIDs are cached and the device is bonding, wait for SDP after the device is bonded
        boolean isBonding = getDeviceProperties(device).isBonding();
        if (isBonding && getDeviceProperties(device).getUuids() == null) {
        DeviceProperties deviceProperties = getDeviceProperties(device);
        if (deviceProperties != null && deviceProperties.isBonding()
                && getDeviceProperties(device).getUuids() == null) {
            return;
        }

@@ -710,7 +711,7 @@ final class RemoteDevices {
        mHandler.sendMessageDelayed(message, UUID_INTENT_DELAY);

        // Uses cached UUIDs if we are bonding. If not, we fetch the UUIDs with SDP.
        if (!isBonding) {
        if (deviceProperties == null || !deviceProperties.isBonding()) {
            sAdapterService.getRemoteServicesNative(Utils.getBytesFromAddress(device.getAddress()));
        }
    }