본인이 만든 라이브의 경우 팔로잉 버튼, 선물하기 버튼이 보이지 않도록 수정
This commit is contained in:
parent
2e48dad913
commit
a4cdbebeb4
|
@ -564,6 +564,13 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||||
placeholder(R.drawable.ic_place_holder)
|
placeholder(R.drawable.ic_place_holder)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
binding.flDonation.visibility =
|
||||||
|
if (response.creatorId != SharedPreferenceManager.userId) {
|
||||||
|
View.VISIBLE
|
||||||
|
} else {
|
||||||
|
View.GONE
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
response.creatorId == SharedPreferenceManager.userId &&
|
response.creatorId == SharedPreferenceManager.userId &&
|
||||||
SharedPreferenceManager.role == MemberRole.CREATOR.name
|
SharedPreferenceManager.role == MemberRole.CREATOR.name
|
||||||
|
@ -681,22 +688,27 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.isFollowing) {
|
if (response.creatorId != SharedPreferenceManager.userId) {
|
||||||
binding.ivCreatorFollow.setImageResource(R.drawable.btn_following)
|
binding.ivCreatorFollow.visibility = View.VISIBLE
|
||||||
binding.ivCreatorFollow.setOnClickListener {
|
if (response.isFollowing) {
|
||||||
viewModel.creatorUnFollow(
|
binding.ivCreatorFollow.setImageResource(R.drawable.btn_following)
|
||||||
creatorId = response.creatorId,
|
binding.ivCreatorFollow.setOnClickListener {
|
||||||
roomId = roomId
|
viewModel.creatorUnFollow(
|
||||||
)
|
creatorId = response.creatorId,
|
||||||
|
roomId = roomId
|
||||||
|
)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
binding.ivCreatorFollow.setImageResource(R.drawable.btn_follow)
|
||||||
|
binding.ivCreatorFollow.setOnClickListener {
|
||||||
|
viewModel.creatorFollow(
|
||||||
|
creatorId = response.creatorId,
|
||||||
|
roomId = roomId
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
binding.ivCreatorFollow.setImageResource(R.drawable.btn_follow)
|
binding.ivCreatorFollow.visibility = View.GONE
|
||||||
binding.ivCreatorFollow.setOnClickListener {
|
|
||||||
viewModel.creatorFollow(
|
|
||||||
creatorId = response.creatorId,
|
|
||||||
roomId = roomId
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (agora.rtmChannelIsNull()) {
|
if (agora.rtmChannelIsNull()) {
|
||||||
|
|
Loading…
Reference in New Issue