mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
oops supposed to be using a modelMapOf to have node list view update
This commit is contained in:
parent
0cf0ef8caf
commit
dda035cceb
2 changed files with 8 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package com.geeksville.mesh.model
|
||||
|
||||
import androidx.compose.frames.modelMapOf
|
||||
import androidx.compose.mutableStateOf
|
||||
import com.geeksville.android.BuildUtils.isEmulator
|
||||
import com.geeksville.mesh.MeshUser
|
||||
|
|
@ -46,7 +47,7 @@ object NodeDB {
|
|||
|
||||
/// A map from nodeid to to nodeinfo
|
||||
val nodes =
|
||||
mutableMapOf(* (if (isEmulator) testNodes else listOf()).map { it.user!!.id to it }.toTypedArray())
|
||||
modelMapOf(* (if (isEmulator) testNodes else listOf()).map { it.user!!.id to it }.toTypedArray())
|
||||
|
||||
/// Could be null if we haven't received our node DB yet
|
||||
val ourNodeInfo get() = nodes[myId.value]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue