Thread
#compose-wear
    Lisandro Di Meo

    Lisandro Di Meo

    4 months ago
    message has been deleted
    John Nichol

    John Nichol

    4 months ago
    @Steve Bower [G]
    Steve Bower [G]

    Steve Bower [G]

    4 months ago
    Hi Lisandro - I'll have a look at this, but at first sight I would expect a) SwipeDismissableNavHost to always pop the navigation back stack when you swipe to dismiss b) the back button (e.g. on the emulator) to trigger the BackHandler you've configured.
    Lisandro Di Meo

    Lisandro Di Meo

    4 months ago
    b is happening correctly
    But now you mention, I think I should change the backstack when going to this path in order to change swipedismissablenavhost to pop the navigation where i expect
    Steve Bower [G]

    Steve Bower [G]

    4 months ago
    Yes, you could pop the backstack on the way to C so that swiping back takes you to A. That's nice, because it means you can configure different behaviour according to how you get to C (e.g. for A -> D -> C you might still want to swipe back to D).
    Also, the NavController defaults its back button handler to popping the back stack - so changing the backstack on that path means everything is consistent and there's no need to configure a BackHandler.
    Lisandro Di Meo

    Lisandro Di Meo

    4 months ago
    Great! Thank you for helping 😄 I'll try that and let you know 🙌 🙌