礼物添加log

This commit is contained in:
2025-12-01 18:20:34 +08:00
parent 15e5a5ae4b
commit 6891805e36

View File

@@ -1121,17 +1121,19 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
private fun startGiftProgressTime() { private fun startGiftProgressTime() {
giftProgress = 0 giftProgress = 0
if (giftCountTimer != null) { if (giftCountTimer != null) {
giftCountTimer!!.cancel() giftCountTimer?.cancel()
} }
LogUtils.e("xj2", "onSubscribe") LogUtils.e("xj2", "onSubscribe")
giftCountTimer = object : CountDownTimer((1000 * 10).toLong(), 50) { giftCountTimer = object : CountDownTimer((1000 * 10).toLong(), 50) {
override fun onTick(millisUntilFinished: Long) { override fun onTick(millisUntilFinished: Long) {
LogUtils.e("startGiftProgressTime onTick:${(!isFinishing)}")
if (!isFinishing) { if (!isFinishing) {
circularProgress!!.progress = 1000 - (millisUntilFinished / 10).toInt() circularProgress!!.progress = 1000 - (millisUntilFinished / 10).toInt()
} }
} }
override fun onFinish() { override fun onFinish() {
LogUtils.e("startGiftProgressTime onFinish")
circularProgress!!.progress = 1000 circularProgress!!.progress = 1000
hideGiftGiveProgress() hideGiftGiveProgress()
} }
@@ -1140,6 +1142,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
} }
private fun showGiftGiveProgress() { private fun showGiftGiveProgress() {
LogUtils.e("showGiftGiveProgress")
ImageUtils.loadImageView( ImageUtils.loadImageView(
giftGiveEvent!!.roonGiftModel.base_image, giftGiveEvent!!.roonGiftModel.base_image,
mBinding!!.giftShowProgressImg mBinding!!.giftShowProgressImg
@@ -1150,6 +1153,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
} }
private fun hideGiftGiveProgress() { private fun hideGiftGiveProgress() {
LogUtils.e("hideGiftGiveProgress")
mBinding!!.giftShowLayout.visibility = View.GONE mBinding!!.giftShowLayout.visibility = View.GONE
if (giftCountTimer != null) { if (giftCountTimer != null) {
giftCountTimer!!.cancel() giftCountTimer!!.cancel()