调整红包倒计时范围
This commit is contained in:
parent
e1f4e8dde4
commit
fa8d8a7421
@ -107,7 +107,7 @@ public class ReceiveRendPacketPopup extends CenterPopupView {
|
|||||||
private Runnable timeRunnable = new Runnable() {
|
private Runnable timeRunnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (time > 0) {
|
if (time > 1) {
|
||||||
circleProgress.setCurrent(time--);
|
circleProgress.setCurrent(time--);
|
||||||
timeHandler.postDelayed(timeRunnable, 1000);
|
timeHandler.postDelayed(timeRunnable, 1000);
|
||||||
String countdown = TimeUtils.getTime(time);
|
String countdown = TimeUtils.getTime(time);
|
||||||
|
@ -1404,9 +1404,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (redTimeCountdown > 1) {
|
if (redTimeCountdown > 1) {
|
||||||
redTimeCountdown = redTimeCountdown - 1;
|
|
||||||
timeHandler.postDelayed(timeRunnable, 1000);
|
timeHandler.postDelayed(timeRunnable, 1000);
|
||||||
redPacketCountdown.setText(String.format(mContext.getString(R.string.red_packet_countdown), TimeUtils.getTime(redTimeCountdown)));
|
redPacketCountdown.setText(String.format(mContext.getString(R.string.red_packet_countdown), TimeUtils.getTime(redTimeCountdown)));
|
||||||
|
redTimeCountdown = redTimeCountdown - 1;
|
||||||
} else {
|
} else {
|
||||||
redTimeCountdown = 0;
|
redTimeCountdown = 0;
|
||||||
timeHandler.removeCallbacks(timeRunnable);
|
timeHandler.removeCallbacks(timeRunnable);
|
||||||
|
Loading…
Reference in New Issue
Block a user