[Modify]最小化后再打开展示免费礼物弹窗

This commit is contained in:
wushaocheng
2022-12-20 16:54:06 +08:00
parent 16bb96e616
commit 8e872341fd

View File

@@ -653,6 +653,8 @@ public class GiftModel extends BaseModel implements IGiftModel {
cancelCountDownTimer();
if(!SPUtils.getBoolean(Constants.IS_SHOW_FREE_GIFT,false) && giftFreeInfo.getCurStage() > 0){
EventBus.getDefault().post(new RoomFreeGiftEvent(giftFreeInfo));
}else if(giftFreeInfo.getCurStage() == 0){
SPUtils.putBoolean(Constants.IS_SHOW_FREE_GIFT,false);
}
if (giftFreeInfo.getCurStage() < giftFreeInfo.getMaxStage()) {
if (giftFreeInfo.getCurStageSecond() > 0) {
@@ -666,7 +668,6 @@ public class GiftModel extends BaseModel implements IGiftModel {
public void onFinish() {
EventBus.getDefault().post(new UpdateKnapFreeGiftNumEvent(giftId, false));
if (giftFreeInfo.getCurStage() == 0) {
SPUtils.putBoolean(Constants.IS_SHOW_FREE_GIFT,false);
EventBus.getDefault().post(new RoomFreeGiftEvent(giftFreeInfo));
}
Logger.info(TAG, "FREE_GIFT onTimerFinish");