<Fragment - 'on navigate back' not bahave the same...
# stackoverflow
u
Fragment - 'on navigate back' not bahave the same way as back button I'm writing android app, using fragments. There are two main ways to navigate up or back.

picture of the screen

The first is to use the arrow on the navigation bar (marked with the number 1 in the picture) The second use the system back button (marked with the number 2) I wrote: override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View { ......