팬토크

- 내 글 수정 모드 상태에서 해당 글을 삭제하면 수정모드가 풀리지 않아 다른 사람 글을 수정할 수 있는 것처럼 보이는 버그 수정
This commit is contained in:
klaus 2024-11-26 01:02:49 +09:00
parent f9577909ff
commit 6b6280a782
1 changed files with 8 additions and 2 deletions

View File

@ -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()
}
}