parent
b98cc8ed79
commit
00774739ed
|
@ -61,6 +61,7 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
|
||||||
private fun setupCheersView() {
|
private fun setupCheersView() {
|
||||||
binding.ivSend.setOnClickListener {
|
binding.ivSend.setOnClickListener {
|
||||||
hideKeyboard {
|
hideKeyboard {
|
||||||
|
cheersAdapter.items.clear()
|
||||||
viewModel.writeCheers(
|
viewModel.writeCheers(
|
||||||
creatorId = userId,
|
creatorId = userId,
|
||||||
cheersContent = binding.etCheer.text.toString()
|
cheersContent = binding.etCheer.text.toString()
|
||||||
|
@ -73,6 +74,7 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
|
||||||
userId = userId,
|
userId = userId,
|
||||||
enterReply = { cheersId, content ->
|
enterReply = { cheersId, content ->
|
||||||
hideKeyboard {
|
hideKeyboard {
|
||||||
|
cheersAdapter.items.clear()
|
||||||
viewModel.writeCheers(
|
viewModel.writeCheers(
|
||||||
parentCheersId = cheersId,
|
parentCheersId = cheersId,
|
||||||
creatorId = userId,
|
creatorId = userId,
|
||||||
|
@ -82,6 +84,7 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
|
||||||
},
|
},
|
||||||
modifyReply = { cheersId, content ->
|
modifyReply = { cheersId, content ->
|
||||||
hideKeyboard {
|
hideKeyboard {
|
||||||
|
cheersAdapter.items.clear()
|
||||||
viewModel.modifyCheers(
|
viewModel.modifyCheers(
|
||||||
cheersId = cheersId,
|
cheersId = cheersId,
|
||||||
creatorId = userId,
|
creatorId = userId,
|
||||||
|
@ -91,6 +94,7 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
|
||||||
},
|
},
|
||||||
modifyCheers = { cheersId, content ->
|
modifyCheers = { cheersId, content ->
|
||||||
hideKeyboard {
|
hideKeyboard {
|
||||||
|
cheersAdapter.items.clear()
|
||||||
viewModel.modifyCheers(
|
viewModel.modifyCheers(
|
||||||
cheersId = cheersId,
|
cheersId = cheersId,
|
||||||
creatorId = userId,
|
creatorId = userId,
|
||||||
|
@ -107,6 +111,7 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
|
||||||
desc = "삭제하시겠습니까?",
|
desc = "삭제하시겠습니까?",
|
||||||
confirmButtonTitle = "삭제",
|
confirmButtonTitle = "삭제",
|
||||||
confirmButtonClick = {
|
confirmButtonClick = {
|
||||||
|
cheersAdapter.items.clear()
|
||||||
viewModel.modifyCheers(
|
viewModel.modifyCheers(
|
||||||
cheersId = it,
|
cheersId = it,
|
||||||
creatorId = userId,
|
creatorId = userId,
|
||||||
|
|
Loading…
Reference in New Issue