mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: remove constructor from DeviceSettingsFragment
This commit is contained in:
parent
e20e66b7f7
commit
b93098cbce
4 changed files with 27 additions and 6 deletions
|
|
@ -183,6 +183,17 @@ class UIViewModel @Inject constructor(
|
|||
.filterValues { it.data.waypoint!!.expire > System.currentTimeMillis() / 1000 }
|
||||
}.asLiveData()
|
||||
|
||||
private val _destNode = MutableStateFlow<NodeInfo?>(null)
|
||||
val destNode: StateFlow<NodeInfo?> get() = if (_destNode.value != null) _destNode else _ourNodeInfo
|
||||
|
||||
/**
|
||||
* Sets the destination [NodeInfo] used in Radio Configuration.
|
||||
* @param node Destination [NodeInfo] (or null for our local NodeInfo).
|
||||
*/
|
||||
fun setDestNode(node: NodeInfo?) {
|
||||
_destNode.value = node
|
||||
}
|
||||
|
||||
/**
|
||||
* Called immediately after activity observes packetResponse
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue