From fa8d8a74219995ba17cf04b85e2b84fa62cd0184 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 28 Aug 2023 10:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BA=A2=E5=8C=85=E5=80=92?= =?UTF-8?q?=E8=AE=A1=E6=97=B6=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/dialog/ReceiveRendPacketPopup.java | 2 +- .../src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/ReceiveRendPacketPopup.java b/live/src/main/java/com/yunbao/live/dialog/ReceiveRendPacketPopup.java index 3cf62692e..c08778b6b 100644 --- a/live/src/main/java/com/yunbao/live/dialog/ReceiveRendPacketPopup.java +++ b/live/src/main/java/com/yunbao/live/dialog/ReceiveRendPacketPopup.java @@ -107,7 +107,7 @@ public class ReceiveRendPacketPopup extends CenterPopupView { private Runnable timeRunnable = new Runnable() { @Override public void run() { - if (time > 0) { + if (time > 1) { circleProgress.setCurrent(time--); timeHandler.postDelayed(timeRunnable, 1000); String countdown = TimeUtils.getTime(time); diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index 99fdba5ac..ad15f75db 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -1404,9 +1404,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis @Override public void run() { if (redTimeCountdown > 1) { - redTimeCountdown = redTimeCountdown - 1; timeHandler.postDelayed(timeRunnable, 1000); redPacketCountdown.setText(String.format(mContext.getString(R.string.red_packet_countdown), TimeUtils.getTime(redTimeCountdown))); + redTimeCountdown = redTimeCountdown - 1; } else { redTimeCountdown = 0; timeHandler.removeCallbacks(timeRunnable);