feat: collect bondedDevices flow in BTScanModel

This commit is contained in:
andrekir 2023-03-27 15:27:26 -03:00
parent 84c85a8c3e
commit 057f94e423
4 changed files with 13 additions and 19 deletions

View file

@ -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")
}