mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: collect bondedDevices flow in BTScanModel
This commit is contained in:
parent
84c85a8c3e
commit
057f94e423
4 changed files with 13 additions and 19 deletions
|
|
@ -93,6 +93,10 @@ class BTScanModel @Inject constructor(
|
|||
private val context: Context get() = application.applicationContext
|
||||
|
||||
init {
|
||||
bluetoothRepository.state.value.bondedDevices.onEach {
|
||||
setupScan() // TODO clean up device list updates
|
||||
}.launchIn(viewModelScope)
|
||||
|
||||
debug("BTScanModel created")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue