I'd like to navigate to last page Fragment when restart application.
Ex) MainFragment > UserListFragment > UserDetailFragment
Using the NavDeepLinkBuilder I created deep link because I need create deep link dynamically.
final PendingIntent pendingIntent = new NavDeepLinkBuilder(requireContext())
.setGraph(R.navigation.nav_graph)
.setDestination(R.id.userDetailFragment)
.createPendingIntent();
pendingIntent.send();
It's works as expected but there is no animation.
If I using deeplink by Uri, I might be able to use NavController#navigate(Uri, NavOptions).
Is there a way to use animation with NavDeepLinkBuilder?
Sorry for my bad English.
Thank you.
If you are using
navigateyou can add another parameter asNavOptionsAnd then create the
NavOptionsprogrammatically asOr also you can create the action in the
xmlas followsFor more information, you can check this navigation-architecture-component