From 6b6280a7822d0d16821198cb247c20e611a1a556 Mon Sep 17 00:00:00 2001 From: klaus Date: Tue, 26 Nov 2024 01:02:49 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=AC=ED=86=A0=ED=81=AC=20-=20=EB=82=B4=20?= =?UTF-8?q?=EA=B8=80=20=EC=88=98=EC=A0=95=20=EB=AA=A8=EB=93=9C=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=EC=97=90=EC=84=9C=20=ED=95=B4=EB=8B=B9=20=EA=B8=80?= =?UTF-8?q?=EC=9D=84=20=EC=82=AD=EC=A0=9C=ED=95=98=EB=A9=B4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=EB=AA=A8=EB=93=9C=EA=B0=80=20=ED=92=80=EB=A6=AC?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EC=95=84=20=EB=8B=A4=EB=A5=B8=20=EC=82=AC?= =?UTF-8?q?=EB=9E=8C=20=EA=B8=80=EC=9D=84=20=EC=88=98=EC=A0=95=ED=95=A0=20?= =?UTF-8?q?=EC=88=98=20=EC=9E=88=EB=8A=94=20=EA=B2=83=EC=B2=98=EB=9F=BC=20?= =?UTF-8?q?=EB=B3=B4=EC=9D=B4=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profile/cheers/UserProfileCheersAdapter.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/cheers/UserProfileCheersAdapter.kt b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/cheers/UserProfileCheersAdapter.kt index 6a7d282..87af694 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/cheers/UserProfileCheersAdapter.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/cheers/UserProfileCheersAdapter.kt @@ -67,6 +67,11 @@ class UserProfileCheersAdapter( onClickModify = { binding.rlContentModify.visibility = View.VISIBLE binding.tvContent.visibility = View.GONE + }, + onClickDelete = { + binding.rlContentModify.visibility = View.GONE + binding.tvContent.visibility = View.VISIBLE + onClickDelete(cheers.cheersId) } ) } @@ -142,7 +147,8 @@ class UserProfileCheersAdapter( cheersId: Long, memberId: Long, creatorId: Long, - onClickModify: () -> Unit + onClickModify: () -> Unit, + onClickDelete: () -> Unit ) { val popup = PopupMenu(context, v) val inflater = popup.menuInflater @@ -166,7 +172,7 @@ class UserProfileCheersAdapter( } R.id.menu_review_delete -> { - onClickDelete(cheersId) + onClickDelete() } }