Merge "Print anonymized address when new device found"

This commit is contained in:
Chienyuan Huang 2021-11-24 11:32:44 +00:00 committed by Gerrit Code Review
commit 0c4d524c33

View File

@ -307,7 +307,8 @@ public class BluetoothEventManager {
CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
if (cachedDevice == null) {
cachedDevice = mDeviceManager.addDevice(device);
Log.d(TAG, "DeviceFoundHandler created new CachedBluetoothDevice");
Log.d(TAG, "DeviceFoundHandler created new CachedBluetoothDevice "
+ cachedDevice.getDevice().getAnonymizedAddress());
} else if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED
&& !cachedDevice.getDevice().isConnected()) {
// Dispatch device add callback to show bonded but