调整红包倒计时范围
This commit is contained in:
parent
e1f4e8dde4
commit
fa8d8a7421
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user