Merge "Move connectSocket into IBluetoothSocketManager (3/3)"
This commit is contained in:
@@ -375,7 +375,7 @@ public final class BluetoothSocket implements Closeable {
|
||||
IBluetooth bluetoothProxy =
|
||||
BluetoothAdapter.getDefaultAdapter().getBluetoothService(null);
|
||||
if (bluetoothProxy == null) throw new IOException("Bluetooth is off");
|
||||
mPfd = bluetoothProxy.connectSocket(mDevice, mType,
|
||||
mPfd = bluetoothProxy.getSocketManager().connectSocket(mDevice, mType,
|
||||
mUuid, mPort, getSecurityFlags());
|
||||
synchronized (this) {
|
||||
if (DBG) Log.d(TAG, "connect(), SocketState: " + mSocketState + ", mPfd: " + mPfd);
|
||||
|
||||
Reference in New Issue
Block a user