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

Commit 628bab0e authored by Zach Johnson's avatar Zach Johnson
Browse files

Simplify fetchRemoteUuids

Bug: 145171640
Test: compile & run
Change-Id: If458b2f71df314f882e6c3e05174ad36b0f5dac5
parent c3b93017
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -1632,7 +1632,8 @@ public class AdapterService extends Service {

            enforceBluetoothPermission(service);

            return service.fetchRemoteUuids(device);
            service.mRemoteDevices.fetchUuids(device);
            return true;
        }


@@ -2530,11 +2531,6 @@ public class AdapterService extends Service {
        return deviceProp.getUuids();
    }

    boolean fetchRemoteUuids(BluetoothDevice device) {
        mRemoteDevices.fetchUuids(device);
        return true;
    }

    int getBatteryLevel(BluetoothDevice device) {
        DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties(device);
        if (deviceProp == null) {