6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-16 15:37:07 +08:00
parent 3761cad653
commit 60ce5572cf

View File

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