Maybe a navigation question, but is there an easy ...
# compose-wear
y
Maybe a navigation question, but is there an easy way to tell the difference between a destination becoming active by back (swipe or button) vs navigation (with launchtop)?
j
@Steve Bower [G]
s
There isn't any difference AFAIK - as with Lisandro's question about navigation earlier, there's a lot of flexibility about sorting out the navigation backstack before you navigate to the new screen - that way, when you go back, it will be to the page you want. For example, popUpTo (or popUpToRoute) can clear unwanted entries from the back stack. Hope that helps!
y
Thanks, I'll try that. Seems like what I want.
Copy code
navDeepLinkBuilder
    .addDestination(NavigationScreens.Player.library)
    .addDestination(newDestination)
👍 1