[Modify]最小化后再打开展示免费礼物弹窗
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user