Loading android/app/src/com/android/bluetooth/btservice/AdapterService.java +7 −3 Original line number Diff line number Diff line Loading @@ -6190,10 +6190,14 @@ public class AdapterService extends Service { int getConnectionState(BluetoothDevice device) { if (Flags.apiGetConnectionStateUsingIdentityAddress()) { int connectionState = mNativeInterface.getConnectionState(getBytesFromAddress(device.getAddress())); final String identityAddress = device.getIdentityAddress(); return (identityAddress == null) ? mNativeInterface.getConnectionState(getBytesFromAddress(device.getAddress())) : mNativeInterface.getConnectionState(getBytesFromAddress(identityAddress)); if (identityAddress != null) { connectionState |= mNativeInterface.getConnectionState(getBytesFromAddress(identityAddress)); } return connectionState; } return mNativeInterface.getConnectionState(getBytesFromAddress(device.getAddress())); } Loading Loading
android/app/src/com/android/bluetooth/btservice/AdapterService.java +7 −3 Original line number Diff line number Diff line Loading @@ -6190,10 +6190,14 @@ public class AdapterService extends Service { int getConnectionState(BluetoothDevice device) { if (Flags.apiGetConnectionStateUsingIdentityAddress()) { int connectionState = mNativeInterface.getConnectionState(getBytesFromAddress(device.getAddress())); final String identityAddress = device.getIdentityAddress(); return (identityAddress == null) ? mNativeInterface.getConnectionState(getBytesFromAddress(device.getAddress())) : mNativeInterface.getConnectionState(getBytesFromAddress(identityAddress)); if (identityAddress != null) { connectionState |= mNativeInterface.getConnectionState(getBytesFromAddress(identityAddress)); } return connectionState; } return mNativeInterface.getConnectionState(getBytesFromAddress(device.getAddress())); } Loading