mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: set NyNodeInfo first in installNodeDB
This commit is contained in:
parent
dec48b155e
commit
55ae55a817
1 changed files with 1 additions and 1 deletions
|
|
@ -64,8 +64,8 @@ class NodeDB @Inject constructor(
|
|||
nodeInfoDao.apply {
|
||||
clearNodeInfo()
|
||||
clearMyNodeInfo()
|
||||
setMyNodeInfo(mi) // set MyNodeInfo first
|
||||
putAll(nodes)
|
||||
setMyNodeInfo(mi) // set MyNodeInfo last
|
||||
}
|
||||
val ourNodeInfo = nodes.find { it.num == mi.myNodeNum }
|
||||
_ourNodeInfo.value = ourNodeInfo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue