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

Commit 53d8e1ec authored by Guojing Yuan's avatar Guojing Yuan Committed by Android (Google) Code Review
Browse files

Merge "[CDM] Expose logs for devices found while discovering" into tm-qpr-dev

parents 5a29df1b 61b11c0f
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);