I navigate to a destination using deep link in another navigation graph
Navigation.findNavController(view).navigate(Uri.parse(link));
And I just want to return to the previous destination.
However, popBackStack() only restart the deep link destination
Navigation.findNavController(view).popBackStack();
How can I return to the previous destination if I insist to use deep link?
Check this. It might help. https://developer.android.com/guide/navigation/navigation-deep-link#explicit
the start destination of the graph also added to the stack. So when you click on the back button, the start destination on the graph coming to the top of the stack.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.