mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(config): pass destNum via setFragmentResultListener
This commit is contained in:
parent
e6e85d6403
commit
c15c3d8c09
8 changed files with 44 additions and 42 deletions
|
|
@ -143,14 +143,13 @@ class RadioConfigRepository @Inject constructor(
|
|||
* Flow representing the combined [DeviceProfile] protobuf.
|
||||
*/
|
||||
val deviceProfileFlow: Flow<DeviceProfile> = combine(
|
||||
myNodeInfoFlow(),
|
||||
nodeDBbyNum,
|
||||
channelSetFlow,
|
||||
localConfigFlow,
|
||||
moduleConfigFlow,
|
||||
) { myInfo, nodes, channels, localConfig, localModuleConfig ->
|
||||
) { nodes, channels, localConfig, localModuleConfig ->
|
||||
deviceProfile {
|
||||
nodes[myInfo?.myNodeNum]?.user?.let {
|
||||
nodes.values.firstOrNull()?.user?.let {
|
||||
longName = it.longName
|
||||
shortName = it.shortName
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue