From 3f3182ad82a50ca230bb8d91fb3c6a845da518a1 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Mon, 29 Sep 2025 15:54:56 -0500 Subject: [PATCH] fix(crash): pass in navcontroller and specify viewmodel type (#3244) Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> --- .../com/geeksville/mesh/navigation/ConnectionsNavigation.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/geeksville/mesh/navigation/ConnectionsNavigation.kt b/app/src/main/java/com/geeksville/mesh/navigation/ConnectionsNavigation.kt index 01f5d370c..6663ead2a 100644 --- a/app/src/main/java/com/geeksville/mesh/navigation/ConnectionsNavigation.kt +++ b/app/src/main/java/com/geeksville/mesh/navigation/ConnectionsNavigation.kt @@ -25,6 +25,7 @@ import androidx.navigation.compose.composable import androidx.navigation.navDeepLink import androidx.navigation.navigation import com.geeksville.mesh.ui.connections.ConnectionsScreen +import com.geeksville.mesh.ui.settings.radio.RadioConfigViewModel import com.geeksville.mesh.ui.settings.radio.components.LoRaConfigScreen import org.meshtastic.core.navigation.ConnectionsRoutes import org.meshtastic.core.navigation.DEEP_LINK_BASE_URI @@ -62,6 +63,6 @@ private fun NavGraphBuilder.configRoutes(navController: NavHostController) { composable { backStackEntry -> val parentEntry = remember(backStackEntry) { navController.getBackStackEntry(ConnectionsRoutes.ConnectionsGraph) } - LoRaConfigScreen(hiltViewModel(parentEntry)) + LoRaConfigScreen(navController = navController, viewModel = hiltViewModel(parentEntry)) } }