Hello ! I'm building a wear os app using compose, ...
# android
l
Hello ! I'm building a wear os app using compose, and using
SwipeDismissableNavHost
I've found that the swiping gesture is ignoring the
BackHandler
inside the composable. For example, if my nav graph is: A -> B -> C, and the swipe from C should redirect to A. I think I have to custom some behavior of the SwipeToDismissBox, but I'm not sure how. Any help is appreciated!
Copy code
composable(
    Paths.WORD,
    arguments = listOf(navArgument("language") { defaultValue = "EN" })
){ navBackStackEntry ->
    BackHandler() { navController.navigate(Paths.HOME) }
    CompleteWord(navController, listState, completeWordViewModel, navBackStackEntry.arguments?.getString("language")!!.toLanguage())
}
👌 1
for anyone intrested, this was solved in #compose-wear