refactor(config): pass destNum via setFragmentResultListener

This commit is contained in:
andrekir 2024-04-15 17:56:47 -03:00
parent e6e85d6403
commit c15c3d8c09
8 changed files with 44 additions and 42 deletions

View file

@ -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
}