fix(community): 리스트 잠금 반응 표시를 숨긴다
This commit is contained in:
+2
-1
@@ -35,7 +35,8 @@ private fun CreatorChannelCommunityPostResponse.toCommunityPostUiModel(
|
||||
existOrdered = existOrdered,
|
||||
likeCount = likeCount,
|
||||
commentCount = commentCount,
|
||||
showComment = isCommentAvailable,
|
||||
showReaction = !isLocked,
|
||||
showComment = isCommentAvailable && !isLocked,
|
||||
showNotice = isPinned,
|
||||
isPinned = isPinned,
|
||||
isLocked = isLocked,
|
||||
|
||||
+1
@@ -37,6 +37,7 @@ data class CreatorChannelCommunityPostUiModel(
|
||||
val existOrdered: Boolean,
|
||||
val likeCount: Int,
|
||||
val commentCount: Int,
|
||||
val showReaction: Boolean,
|
||||
val showComment: Boolean,
|
||||
val showNotice: Boolean,
|
||||
val isPinned: Boolean,
|
||||
|
||||
+3
@@ -65,10 +65,13 @@ class CreatorChannelCommunityListAdapter(
|
||||
tvCreatorChannelCommunityListTime.text = item.createdAtText
|
||||
layoutCreatorChannelCommunityListNotice.isVisible = item.showNotice
|
||||
tvCreatorChannelCommunityListBody.text = item.content
|
||||
layoutCreatorChannelCommunityListReaction.isVisible = item.showReaction || item.showComment
|
||||
tvCreatorChannelCommunityListCommentCount.text = item.commentCount.moneyFormat()
|
||||
tvCreatorChannelCommunityListCommentCount.isVisible = item.showComment
|
||||
ivCreatorChannelCommunityListComment.isVisible = item.showComment
|
||||
tvCreatorChannelCommunityListLikeCount.text = item.likeCount.moneyFormat()
|
||||
tvCreatorChannelCommunityListLikeCount.isVisible = item.showReaction
|
||||
ivCreatorChannelCommunityListLike.isVisible = item.showReaction
|
||||
|
||||
val visibleImageUrl = item.imageUrl.takeUnless { item.isLocked }
|
||||
layoutCreatorChannelCommunityListImageContainer.isVisible =
|
||||
|
||||
@@ -216,6 +216,7 @@
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_creator_channel_community_list_reaction"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginTop="@dimen/spacing_16"
|
||||
@@ -235,14 +236,15 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/spacing_4"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:includeFontPadding="false"
|
||||
android:textColor="@color/gray_400"
|
||||
tools:text="5" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_creator_channel_community_list_like"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/ic_feed_community_heart" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user