Loading android/app/src/com/android/bluetooth/BluetoothObexTransport.java +6 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.bluetooth; import android.bluetooth.BluetoothSocket; import com.android.bluetooth.flags.Flags; import com.android.obex.ObexTransport; import java.io.DataInputStream; Loading Loading @@ -119,8 +120,12 @@ public class BluetoothObexTransport implements ObexTransport { if (mSocket == null) { return null; } String identityAddress = Flags.identityAddressNullIfUnknown() ? Utils.getBrEdrAddress(mSocket.getRemoteDevice()) : mSocket.getRemoteDevice().getIdentityAddress(); return mSocket.getConnectionType() == BluetoothSocket.TYPE_RFCOMM ? mSocket.getRemoteDevice().getIdentityAddress() ? identityAddress : mSocket.getRemoteDevice().getAddress(); } Loading Loading
android/app/src/com/android/bluetooth/BluetoothObexTransport.java +6 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.bluetooth; import android.bluetooth.BluetoothSocket; import com.android.bluetooth.flags.Flags; import com.android.obex.ObexTransport; import java.io.DataInputStream; Loading Loading @@ -119,8 +120,12 @@ public class BluetoothObexTransport implements ObexTransport { if (mSocket == null) { return null; } String identityAddress = Flags.identityAddressNullIfUnknown() ? Utils.getBrEdrAddress(mSocket.getRemoteDevice()) : mSocket.getRemoteDevice().getIdentityAddress(); return mSocket.getConnectionType() == BluetoothSocket.TYPE_RFCOMM ? mSocket.getRemoteDevice().getIdentityAddress() ? identityAddress : mSocket.getRemoteDevice().getAddress(); } Loading