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