diff --git a/app/src/main/kotlin/com/subtracks/ui/AppRoot.kt b/app/src/main/kotlin/com/subtracks/ui/AppRoot.kt index a8da2d1d..76bddca1 100644 --- a/app/src/main/kotlin/com/subtracks/ui/AppRoot.kt +++ b/app/src/main/kotlin/com/subtracks/ui/AppRoot.kt @@ -197,6 +197,9 @@ private fun MainNavigation() { } } + // currentBackStack is restricted to androidx.navigation, but it is the only way to find a + // detail entry by its arguments; popBackStack(route) matches the destination and ignores them. + @Suppress("RestrictedApi") fun navigateDetail( pattern: String, argument: String,