Skip to content

Commit 41364ab

Browse files
Grega Podlesekmuscardinus
authored andcommitted
Call success on ConnectRequest right after connectGatt if connecting with autoConnect = true.
1 parent 8e5e1d2 commit 41364ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ble/src/main/java/no/nordicsemi/android/ble/BleManagerHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,10 @@ private boolean internalConnect(@NonNull final BluetoothDevice device,
741741
log(Log.DEBUG, () -> "gatt = device.connectGatt(autoConnect = " + autoConnect + ")");
742742
bluetoothGatt = device.connectGatt(context, autoConnect, gattCallback);
743743
}
744+
745+
if (autoConnect && this.connectRequest != null) {
746+
this.connectRequest.notifySuccess(device);
747+
}
744748
return true;
745749
}
746750

0 commit comments

Comments
 (0)