From 643568f63b78b3012dd822f186f0e8c36f940522 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Fri, 18 Aug 2023 18:08:15 +0800 Subject: [PATCH] =?UTF-8?q?6.5.4=E7=A4=BC=E7=89=A9=E5=86=A0=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {