오픈 예정 콘텐츠 상세
- 댓글 창, 좋아요, 공유, 후원 버튼 숨김
This commit is contained in:
@@ -433,7 +433,11 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||
}
|
||||
|
||||
private fun setupCommentArea(response: GetAudioContentDetailResponse) {
|
||||
if (response.isCommentAvailable) {
|
||||
if (
|
||||
response.isCommentAvailable &&
|
||||
response.contentUrl.isNotBlank() &&
|
||||
response.releaseDate == null
|
||||
) {
|
||||
binding.llDonation.visibility = View.VISIBLE
|
||||
binding.llComment.visibility = View.VISIBLE
|
||||
binding.tvCommentCount.text = "${response.commentCount}"
|
||||
@@ -657,6 +661,9 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||
binding.tvTag.visibility = View.GONE
|
||||
}
|
||||
|
||||
if (response.contentUrl.isNotBlank() && response.releaseDate == null) {
|
||||
binding.svActionButtons.visibility = View.VISIBLE
|
||||
binding.llLike.visibility = View.VISIBLE
|
||||
binding.ivLike.setImageResource(
|
||||
if (response.isLike) {
|
||||
R.drawable.ic_audio_content_heart_pressed
|
||||
@@ -683,6 +690,7 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||
}
|
||||
}
|
||||
|
||||
binding.tvShare.visibility = View.VISIBLE
|
||||
binding.tvShare.setOnClickListener {
|
||||
viewModel.shareAudioContent(
|
||||
audioContentId = audioContentId,
|
||||
@@ -697,6 +705,11 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||
startActivity(shareIntent)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
binding.svActionButtons.visibility = View.GONE
|
||||
binding.llLike.visibility = View.GONE
|
||||
binding.tvShare.visibility = View.GONE
|
||||
}
|
||||
|
||||
if (response.totalContentCount != null && response.remainingContentCount != null) {
|
||||
binding.rlLimitedEdition.visibility = View.VISIBLE
|
||||
|
||||
@@ -295,6 +295,7 @@
|
||||
tools:text="매버릭 팔레트 (feat. J-DRAGON)" />
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/sv_action_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13.3dp">
|
||||
|
||||
Reference in New Issue
Block a user