Single Handler for all postDelayed work, cancelled on teardown; a BT ACTION_STATE_CHANGED receiver that cleanly stops the service on STATE_OFF; try/catch around every native scan/connect/GATT call. Prevents the libc destroyed-mutex abort when the adapter is disabled mid-connection. |
||
|---|---|---|
| .. | ||
| libs | ||
| src/main | ||
| build.gradle.kts | ||