Intent.FLAG_ACTIVITY_SINGLE_TOP startActivity(intent) } #FGPSF "GUFS view?.findViewById<Button>(R.id.button2_to_activity2)?.setOnClickListener { val options = NavOptions.Builder().setLaunchSingleTop(true).build() view?.let { Navigation.findNavController(it).navigate(R.id.action_mainFragment_to_main2Activit y, null, options) } }