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);