mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: convert connectionState to StateFlow
This commit is contained in:
parent
a980441fd1
commit
cfdb245da2
8 changed files with 25 additions and 42 deletions
|
|
@ -465,7 +465,7 @@ class UIViewModel @Inject constructor(
|
|||
}
|
||||
|
||||
// Connection state to our radio device
|
||||
val connectionState get() = radioConfigRepository.connectionState.asLiveData()
|
||||
val connectionState get() = radioConfigRepository.connectionState
|
||||
fun isConnected() = connectionState.value != MeshService.ConnectionState.DISCONNECTED
|
||||
|
||||
private val _requestChannelUrl = MutableLiveData<Uri?>(null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue