mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: pass nav args to ViewModel using SavedStateHandle
This commit is contained in:
parent
296f1944b7
commit
1ae65ef267
4 changed files with 38 additions and 64 deletions
|
|
@ -120,7 +120,6 @@ class NavGraphFragment : ScreenFragment("NavGraph"), Logging {
|
|||
"NodeDetails" -> Route.NodeDetail(destNum!!)
|
||||
else -> Route.RadioConfig(destNum)
|
||||
}
|
||||
model.setDestNum(destNum)
|
||||
|
||||
return ComposeView(requireContext()).apply {
|
||||
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue