// val exploreFrag = ExploreFragment()
// val chatFragment = ChatFragment()
// val notificationFrag = NotificationsFragment()
// val userFrag = UserFragment()
//
fragment(homeFrag)
}
private fun fragment(fragment: Fragment)
{
val fragmentManager = supportFragmentManager
val fragmentTransaction = fragmentManager.beginTransaction()
fragmentTransaction.replace(R.id.frame, fragment).addToBackStack(Fragment::class.java.simpleName)
fragmentTransaction.commit()
}
// val exploreFrag = ExploreFragment() // val chatFragment = ChatFragment() // val notificationFrag = NotificationsFragment() // val userFrag = UserFragment()