mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: finish transition from NodeInfo to NodeEntity
This commit is contained in:
parent
ed2703c77a
commit
b503c10789
5 changed files with 36 additions and 21 deletions
|
|
@ -186,8 +186,8 @@ class UIViewModel @Inject constructor(
|
|||
private val _quickChatActions = MutableStateFlow<List<QuickChatAction>>(emptyList())
|
||||
val quickChatActions: StateFlow<List<QuickChatAction>> = _quickChatActions
|
||||
|
||||
private val _focusedNode = MutableStateFlow<NodeInfo?>(null)
|
||||
val focusedNode: StateFlow<NodeInfo?> = _focusedNode
|
||||
private val _focusedNode = MutableStateFlow<NodeEntity?>(null)
|
||||
val focusedNode: StateFlow<NodeEntity?> = _focusedNode
|
||||
|
||||
private val nodeFilterText = MutableStateFlow("")
|
||||
private val nodeSortOption = MutableStateFlow(NodeSortOption.LAST_HEARD)
|
||||
|
|
@ -747,7 +747,7 @@ class UIViewModel @Inject constructor(
|
|||
_currentTab.value = tab
|
||||
}
|
||||
|
||||
fun focusUserNode(node: NodeInfo?) {
|
||||
fun focusUserNode(node: NodeEntity?) {
|
||||
_currentTab.value = 1
|
||||
_focusedNode.value = node
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue