라이브 메인 - 커뮤니티 클릭 이벤트 추가

This commit is contained in:
2023-12-25 07:44:17 +09:00
parent 6c96c4afe5
commit c896be5ece
3 changed files with 14 additions and 6 deletions

View File

@@ -28,6 +28,7 @@ import kr.co.vividnext.sodalive.common.SharedPreferenceManager
import kr.co.vividnext.sodalive.databinding.FragmentLiveBinding
import kr.co.vividnext.sodalive.explorer.profile.UserProfileActivity
import kr.co.vividnext.sodalive.explorer.profile.creator_community.CreatorCommunityAdapter
import kr.co.vividnext.sodalive.explorer.profile.creator_community.all.CreatorCommunityAllActivity
import kr.co.vividnext.sodalive.extensions.dpToPx
import kr.co.vividnext.sodalive.extensions.moneyFormat
import kr.co.vividnext.sodalive.following.FollowingCreatorActivity
@@ -535,7 +536,16 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
}
})
creatorCommunityAdapter = CreatorCommunityAdapter {}
creatorCommunityAdapter = CreatorCommunityAdapter {
startActivity(
Intent(
requireActivity(),
CreatorCommunityAllActivity::class.java
).apply {
putExtra(Constants.EXTRA_COMMUNITY_CREATOR_ID, it)
}
)
}
binding.rvCommunityPost.adapter = creatorCommunityAdapter
viewModel.communityPostItemLiveData.observe(viewLifecycleOwner) {