Skip to content

Instantly share code, notes, and snippets.

Last active December 25, 2021 12:20
What would you like to do?
Custom back navigation
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
requireActivity().onBackPressedDispatcher.addCallback(viewLifecycleOwner) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment