Skip to content

Problem after adding dependencies for preferences #205

Answered by danilo576
danilo576 asked this question in Q&A
Discussion options

You must be logged in to vote

I solved this problem by replacing navController.getBackStack().getLast().getDestination().getId() with navController.getCurrentBackStackEntry().getDestination().getId() and everything works as we expect. This lib is really powerful!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@danilo576
Comment options

Comment options

You must be logged in to vote
1 reply
@srtvprateek
Comment options

Answer selected by danilo576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants