6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-18 18:08:15 +08:00
parent f03ba293b5
commit 643568f63b

View File

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