From d0eb4103baf46a2ea455717ea6ac46d097493b42 Mon Sep 17 00:00:00 2001 From: klaus <klaus@vividnext.co.kr> Date: Tue, 28 May 2024 12:23:54 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20-=20=EC=9C=A0?= =?UTF-8?q?=EB=A3=8C=20&=20=EA=B5=AC=EB=A7=A4=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9D=80=20=EA=B2=8C=EC=8B=9C=EA=B8=80=EB=A7=8C=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=EA=B0=80=20Blur=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 ++-- .../explorer/profile/UserProfileActivity.kt | 2 +- .../creator_community/CreatorCommunityAdapter.kt | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d30a71c..878bd9e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -40,8 +40,8 @@ android { applicationId "kr.co.vividnext.sodalive" minSdk 23 targetSdk 33 - versionCode 76 - versionName "1.11.3" + versionCode 78 + versionName "1.12.1" } buildTypes { diff --git a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt index 5fa33fd..4a3bbd1 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt @@ -832,7 +832,7 @@ class UserProfileActivity : BaseActivity<ActivityUserProfileBinding>( placeholder(R.drawable.ic_place_holder) transformations(RoundedCornersTransformation(4.7f.dpToPx())) - if (!item.existOrdered) { + if (!item.existOrdered && item.price > 0) { transformations( BlurTransformation( this@UserProfileActivity, diff --git a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/CreatorCommunityAdapter.kt b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/CreatorCommunityAdapter.kt index 1a8c872..c9d50bd 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/CreatorCommunityAdapter.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/CreatorCommunityAdapter.kt @@ -1,8 +1,10 @@ package kr.co.vividnext.sodalive.explorer.profile.creator_community +import android.content.Context import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView +import coil.transform.BlurTransformation import coil.transform.CircleCropTransformation import coil.transform.RoundedCornersTransformation import kr.co.vividnext.sodalive.R @@ -17,6 +19,7 @@ class CreatorCommunityAdapter( val items = mutableListOf<GetCommunityPostListResponse>() inner class ViewHolder( + private val context: Context, private val binding: ItemCreatorCommunityBinding ) : RecyclerView.ViewHolder(binding.root) { fun bind(item: GetCommunityPostListResponse) { @@ -33,6 +36,16 @@ class CreatorCommunityAdapter( crossfade(true) placeholder(R.drawable.ic_place_holder) transformations(RoundedCornersTransformation(4.7f.dpToPx())) + + if (!item.existOrdered && item.price > 0) { + transformations( + BlurTransformation( + context, + 25f, + 2.5f + ) + ) + } } binding.tvLikeCount.text = "${item.likeCount}" @@ -43,6 +56,7 @@ class CreatorCommunityAdapter( } override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = ViewHolder( + parent.context, ItemCreatorCommunityBinding.inflate( LayoutInflater.from(parent.context), parent,