Jak otworzyć fragment z adaptera w Kotlin

holder.send.setOnClickListener {
                val activity=it.context as AppCompatActivity
                activity.supportFragmentManager
                    .beginTransaction()
                    .replace(R.id.container,MessegeFragment.newInstance())
                    .commitNow()
        }
Zany Zebra