라이브 방
- 하트 후원 안내 팝업 추가
This commit is contained in:
@@ -151,6 +151,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
|||||||
}
|
}
|
||||||
|
|
||||||
private var isShowSignatureImage = false
|
private var isShowSignatureImage = false
|
||||||
|
private var isAvailableLikeHeart = false
|
||||||
|
|
||||||
private val countDownTimer = object : CountDownTimer(remainingNoChattingTime * 1000, 1000) {
|
private val countDownTimer = object : CountDownTimer(remainingNoChattingTime * 1000, 1000) {
|
||||||
override fun onTick(millisUntilFinished: Long) {
|
override fun onTick(millisUntilFinished: Long) {
|
||||||
@@ -1104,6 +1105,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
|||||||
if (!isHost) {
|
if (!isHost) {
|
||||||
binding.flLikeHeart.visibility = View.VISIBLE
|
binding.flLikeHeart.visibility = View.VISIBLE
|
||||||
binding.flLikeHeart.setOnClickListener {
|
binding.flLikeHeart.setOnClickListener {
|
||||||
|
if (isAvailableLikeHeart) {
|
||||||
binding.flLikeHeart.isEnabled = false
|
binding.flLikeHeart.isEnabled = false
|
||||||
viewModel.likeHeart(
|
viewModel.likeHeart(
|
||||||
roomId = roomId,
|
roomId = roomId,
|
||||||
@@ -1138,6 +1140,17 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
|||||||
binding.flLikeHeart.isEnabled = true
|
binding.flLikeHeart.isEnabled = true
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
SodaDialog(
|
||||||
|
activity = this@LiveRoomActivity,
|
||||||
|
layoutInflater = layoutInflater,
|
||||||
|
title = "안내",
|
||||||
|
desc = "'좋아해요'는 유료 후원입니다.\n" +
|
||||||
|
"클릭시 1캔이 소진됩니다.",
|
||||||
|
confirmButtonTitle = "확인",
|
||||||
|
confirmButtonClick = { isAvailableLikeHeart = true }
|
||||||
|
).show(screenWidth)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
binding.flLikeHeart.visibility = View.GONE
|
binding.flLikeHeart.visibility = View.GONE
|
||||||
|
|||||||
Reference in New Issue
Block a user