kotlin navigation change in fragment with out click on view

Viewed 28

I want to transfer from one navigation to another navigation using the Kotlin programming language inside the fragment when the data is received from the server side and saved, but a view is required for transfer and I did not click on any view.

Navigation.findNavController(binding.root).navigate(R.id.action_signUpFragment_to_checkCodeFragment,bundle)

This code works, but when the user hits the back button, the program crashes

0 Answers
Related