Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Call success on ConnectRequest right after connectGatt if connecting …
…with autoConnect = true.
  • Loading branch information
Grega Podlesek authored and muscardinus committed Aug 13, 2024
commit 41364abf40fd55a23b8cd0f62426be2dc8db6f77
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,10 @@ private boolean internalConnect(@NonNull final BluetoothDevice device,
log(Log.DEBUG, () -> "gatt = device.connectGatt(autoConnect = " + autoConnect + ")");
bluetoothGatt = device.connectGatt(context, autoConnect, gattCallback);
}

if (autoConnect && this.connectRequest != null) {
this.connectRequest.notifySuccess(device);
}
return true;
}

Expand Down