diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java b/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java index 141ad90e3..6a682dc7f 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java @@ -464,8 +464,8 @@ public class LiveGiftPopup extends AbsDialogFragment { goldText.setText(coinModel.getGold()); diamondText.setText(coinModel.getCoin()); lvStr.setText("Lv." + coinModel.getUserLevel()); - int nextLeve = Integer.parseInt(coinModel.getUserNextLevelRewards())+Integer.parseInt(coinModel.getUserLevelCurrentConsumption()); - int maxLeve = Integer.parseInt(coinModel.getUserLevelMax()); + int nextLeve = Integer.parseInt(coinModel.getUserNextLevelRewards()); + int maxLeve = Integer.parseInt(coinModel.getUserLevelMax())+Integer.parseInt(coinModel.getUserLevelCurrentConsumption()); findViewById(R.id.red_point).setVisibility((!TextUtils.isEmpty(coinModel.getUsersPackRedDot())) && TextUtils.equals(coinModel.getUsersPackRedDot(), "1") ? View.VISIBLE : View.GONE); if (!TextUtils.equals(coinModel.getUserLevel(),coinModel.getUserLevelMax())) { @@ -624,6 +624,7 @@ public class LiveGiftPopup extends AbsDialogFragment { giftSendLayout.setVisibility(View.VISIBLE); lianSongHandler.removeCallbacks(lianSongRunnable); mShowLianBtn = false; + getCoin(); } /** @@ -1110,6 +1111,7 @@ public class LiveGiftPopup extends AbsDialogFragment { // //刷新包裹列表wrap_gift_num -1:表示数量没有变化 // mObjGiftSendback = obj; isGetNewWrap = true; + if (isWrap) { Bus.get().post(new LiveParcelItemRefreshEvent().setLiveGiftModel(liveGiftModel)); }