val intent = Intent(this, AmityCommunityHomePageActivity::class.java)
startActivity(intent)
class MyCommunityHomeActivity: AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_my_community_home)
if(savedInstanceState == null) {
val fragmentManager = supportFragmentManager
val fragmentTransaction = fragmentManager.beginTransaction()
val fragment = createCommunityHomeFragment()
fragmentTransaction.replace(R.id.fragmentContainer, fragment)
fragmentTransaction.commit()
}
}
private fun createCommunityHomeFragment(): Fragment {
return AmityCommunityHomePageFragment.Builder().build(activity)
}
}