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

Commit 61b11c0f authored by Guojing Yuan's avatar Guojing Yuan
Browse files

[CDM] Expose logs for devices found while discovering

Fix: 213608298

Test: build
Change-Id: I04ee915980d78480198ab09e8ce8aafe5cf82714
parent 8af9006e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ public class CompanionDeviceDiscoveryService extends Service {
                }
                return;
            }
            if (DEBUG) Log.i(TAG, "onDeviceFound() " + device.toShortString() + " - New device.");
            Log.i(TAG, "onDeviceFound() " + device.toShortString() + " - New device.");

            // First: make change.
            mDevicesFound.add(device);
@@ -363,9 +363,9 @@ public class CompanionDeviceDiscoveryService extends Service {
        });
    }

    private void onDeviceLost(@Nullable DeviceFilterPair<?> device) {
    private void onDeviceLost(@NonNull DeviceFilterPair<?> device) {
        runOnMainThread(() -> {
            if (DEBUG) Log.i(TAG, "onDeviceLost(), device=" + device.toShortString());
            Log.i(TAG, "onDeviceLost(), device=" + device.toShortString());

            // First: make change.
            mDevicesFound.remove(device);