[CDM] Expose logs for devices found while discovering

Fix: 213608298

Test: build
Change-Id: I04ee915980d78480198ab09e8ce8aafe5cf82714
This commit is contained in:
Guojing Yuan
2022-09-15 20:50:33 +00:00
parent 8af9006eb3
commit 61b11c0f85

View File

@@ -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);