Loading android/app/src/com/android/bluetooth/btservice/RemoteDevices.java +15 −9 Original line number Diff line number Diff line Loading @@ -1224,8 +1224,10 @@ public class RemoteDevices { */ void leAddressAssociateCallback( byte[] mainAddress, byte[] secondaryAddress, int identityAddressTypeFromNative) { DeviceProperties deviceProperties; BluetoothDevice device = getDevice(mainAddress); if (device == null) { if (!Flags.identityRetentionOnRestart()) { errorLog( "leAddressAssociateCallback: device is NULL, address=" + Utils.getRedactedAddressStringFromByte(mainAddress) Loading @@ -1235,6 +1237,11 @@ public class RemoteDevices { + identityAddressTypeFromNative); return; } deviceProperties = addDeviceProperties(mainAddress); device = deviceProperties.getDevice(); } else { deviceProperties = getDeviceProperties(device); } Log.d( TAG, "leAddressAssociateCallback device: " Loading @@ -1244,7 +1251,6 @@ public class RemoteDevices { + ", identityAddressTypeFromNative=" + identityAddressTypeFromNative); DeviceProperties deviceProperties = getDeviceProperties(device); deviceProperties.setIdentityAddress(Utils.getAddressStringFromByte(secondaryAddress)); deviceProperties.setIdentityAddressTypeFromNative(identityAddressTypeFromNative); } Loading Loading
android/app/src/com/android/bluetooth/btservice/RemoteDevices.java +15 −9 Original line number Diff line number Diff line Loading @@ -1224,8 +1224,10 @@ public class RemoteDevices { */ void leAddressAssociateCallback( byte[] mainAddress, byte[] secondaryAddress, int identityAddressTypeFromNative) { DeviceProperties deviceProperties; BluetoothDevice device = getDevice(mainAddress); if (device == null) { if (!Flags.identityRetentionOnRestart()) { errorLog( "leAddressAssociateCallback: device is NULL, address=" + Utils.getRedactedAddressStringFromByte(mainAddress) Loading @@ -1235,6 +1237,11 @@ public class RemoteDevices { + identityAddressTypeFromNative); return; } deviceProperties = addDeviceProperties(mainAddress); device = deviceProperties.getDevice(); } else { deviceProperties = getDeviceProperties(device); } Log.d( TAG, "leAddressAssociateCallback device: " Loading @@ -1244,7 +1251,6 @@ public class RemoteDevices { + ", identityAddressTypeFromNative=" + identityAddressTypeFromNative); DeviceProperties deviceProperties = getDeviceProperties(device); deviceProperties.setIdentityAddress(Utils.getAddressStringFromByte(secondaryAddress)); deviceProperties.setIdentityAddressTypeFromNative(identityAddressTypeFromNative); } Loading