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 6a035322f..138d2c538 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java @@ -457,7 +457,7 @@ public class LiveGiftPopup extends AbsDialogFragment { int nextLeve = Integer.parseInt(coinModel.getUserNextLevelRewards()); - BigDecimal maxLeve = new BigDecimal(coinModel.getUserLevelMax()).add( new BigDecimal(coinModel.getUserLevelCurrentConsumption())); + BigDecimal maxLeve = new BigDecimal(coinModel.getUserLevelUpgrades()).add( new BigDecimal(coinModel.getUserLevelCurrentConsumption())); try { String leveNext = String.valueOf(nextLeve); String userNextLevel = coinModel.getUserLevelUpgrades(); @@ -491,7 +491,7 @@ public class LiveGiftPopup extends AbsDialogFragment { userNextLevelIndexOf, userNextLevelIndexOf + userNextLevelSize, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); leaveHint.setText(builder); - progressBar.setProgress(nextLeve); + progressBar.setProgress(new BigDecimal(coinModel.getUserLevelCurrentConsumption()).intValue()); progressBar.setMax(maxLeve.intValue()); } catch (Exception e) { throw new RuntimeException(e); @@ -665,6 +665,7 @@ public class LiveGiftPopup extends AbsDialogFragment { .append(liveGiftModel.getNamingLiveName()) .append(" ") .append(mContext.getText(com.yunbao.live.R.string.the_title_financier)) + .append(" ") .append(liveGiftModel.getNamingUserName()); namingName.setText(namingNameText.toString()); } else {