mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Decouple MainAppBar from UiViewModel (#3216)
This commit is contained in:
parent
6d5e56b34f
commit
a8b0327c41
3 changed files with 9 additions and 43 deletions
|
|
@ -235,13 +235,6 @@ constructor(
|
|||
_currentAlert.value = null
|
||||
}
|
||||
|
||||
private val _title = MutableStateFlow("")
|
||||
val title: StateFlow<String> = _title.asStateFlow()
|
||||
|
||||
fun setTitle(title: String) {
|
||||
viewModelScope.launch { _title.value = title }
|
||||
}
|
||||
|
||||
val meshService: IMeshService?
|
||||
get() = serviceRepository.meshService
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue