팬토크
- 내 글 수정 모드 상태에서 해당 글을 삭제하면 수정모드가 풀리지 않아 다른 사람 글을 수정할 수 있는 것처럼 보이는 버그 수정
This commit is contained in:
parent
f9577909ff
commit
6b6280a782
|
@ -67,6 +67,11 @@ class UserProfileCheersAdapter(
|
||||||
onClickModify = {
|
onClickModify = {
|
||||||
binding.rlContentModify.visibility = View.VISIBLE
|
binding.rlContentModify.visibility = View.VISIBLE
|
||||||
binding.tvContent.visibility = View.GONE
|
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,
|
cheersId: Long,
|
||||||
memberId: Long,
|
memberId: Long,
|
||||||
creatorId: Long,
|
creatorId: Long,
|
||||||
onClickModify: () -> Unit
|
onClickModify: () -> Unit,
|
||||||
|
onClickDelete: () -> Unit
|
||||||
) {
|
) {
|
||||||
val popup = PopupMenu(context, v)
|
val popup = PopupMenu(context, v)
|
||||||
val inflater = popup.menuInflater
|
val inflater = popup.menuInflater
|
||||||
|
@ -166,7 +172,7 @@ class UserProfileCheersAdapter(
|
||||||
}
|
}
|
||||||
|
|
||||||
R.id.menu_review_delete -> {
|
R.id.menu_review_delete -> {
|
||||||
onClickDelete(cheersId)
|
onClickDelete()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue