调整红包倒计时范围

This commit is contained in:
zlzw 2023-08-28 10:14:38 +08:00
parent e1f4e8dde4
commit fa8d8a7421
2 changed files with 2 additions and 2 deletions

View File

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

View File

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