Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Oct 29, 2025

  • Better exception handling
  • Use fewer resources by sharing the flow.

Convert `connectedDevices()` from a function returning a cold Flow to a property that is a hot `StateFlow`. This simplifies call sites and improves efficiency by sharing the underlying subscription.
Enhances robustness by adding extensive error handling around broadcast receiver registration, profile event processing, and service disconnections to prevent crashes. Also ensures device flow is cleared when Bluetooth is disabled.
@d4rken d4rken added the enhancement Add a new feature of improve an existing feature label Oct 29, 2025
Adds retry and catch logic to handle failures gracefully.
@d4rken d4rken merged commit 15d664c into main Oct 29, 2025
13 checks passed
@d4rken d4rken deleted the bluetoothmanager-improvements branch October 29, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Add a new feature of improve an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants