From a0907f44cfbfa690ba909894b215a222d92a774e Mon Sep 17 00:00:00 2001 From: Steven de Tilly Date: Tue, 16 Jul 2024 19:23:29 -0400 Subject: [PATCH 1/2] Android navigation: add a way to pop the root --- .../compose/PilotNavControllerNavigationListener.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/navigation/common/src/androidMain/kotlin/com/mirego/pilot/navigation/compose/PilotNavControllerNavigationListener.kt b/navigation/common/src/androidMain/kotlin/com/mirego/pilot/navigation/compose/PilotNavControllerNavigationListener.kt index 2b46f519..5c7476c7 100644 --- a/navigation/common/src/androidMain/kotlin/com/mirego/pilot/navigation/compose/PilotNavControllerNavigationListener.kt +++ b/navigation/common/src/androidMain/kotlin/com/mirego/pilot/navigation/compose/PilotNavControllerNavigationListener.kt @@ -16,6 +16,8 @@ public open class PilotNavControllerNavigationListener Date: Tue, 16 Jul 2024 19:49:50 -0400 Subject: [PATCH 2/2] api dump --- navigation/common/api/navigation.api | 1 + 1 file changed, 1 insertion(+) diff --git a/navigation/common/api/navigation.api b/navigation/common/api/navigation.api index 87cf275e..ff2783ec 100644 --- a/navigation/common/api/navigation.api +++ b/navigation/common/api/navigation.api @@ -68,6 +68,7 @@ public final class com/mirego/pilot/navigation/compose/PilotBackHandlerKt { public class com/mirego/pilot/navigation/compose/PilotNavControllerNavigationListener : com/mirego/pilot/navigation/PilotNavigationListener { public static final field $stable I public fun (Landroidx/navigation/NavController;)V + public fun onRootPop ()V public fun pop ()V public fun popTo (Lcom/mirego/pilot/navigation/PilotNavigationRoute;Z)V public fun push (Lcom/mirego/pilot/navigation/PilotNavigationRoute;)Z