mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: move error message handling to ServiceRepository
This commit is contained in:
parent
cf239e3634
commit
76151e153f
6 changed files with 29 additions and 18 deletions
|
|
@ -194,7 +194,7 @@ class BTScanModel @Inject constructor(
|
|||
addDevice(entry)
|
||||
}
|
||||
}.catch { ex ->
|
||||
radioInterfaceService.setErrorMessage("Unexpected Bluetooth scan failure: ${ex.message}")
|
||||
serviceRepository.setErrorMessage("Unexpected Bluetooth scan failure: ${ex.message}")
|
||||
}.launchIn(viewModelScope)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue