From 2ef2f0d1a585f08e269194b5387b0c8aa7eb443c Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Sun, 21 Jul 2024 11:32:08 -0400 Subject: [PATCH] adds the key to avoid applying to a separate navcontroller --- .../com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt index 76122174a..c023f0ebe 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt @@ -100,7 +100,7 @@ fun AppNavigation( ) { val scope = rememberCoroutineScope() val nav = - remember { + remember(navController) { { route: String -> scope.launch { if (getRouteWithArguments(navController) != route) {