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 34cb9db3e..e502936b3 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java @@ -463,10 +463,10 @@ public class LiveGiftPopup extends AbsDialogFragment { userNextLevel, leveNext); int leveNextIndexOf = hint.indexOf(leveNext); int leveNextSize = leveNext.length(); - int userNextLevelIndexOf = msg.indexOf(userNextLevel); + int userNextLevelIndexOf = hint.indexOf(userNextLevel); int userNextLevelSize = userNextLevel.length(); SpannableStringBuilder builder = new SpannableStringBuilder(); - builder.append(msg); + builder.append(hint); builder.setSpan(new ForegroundColorSpan(Color.parseColor("#FFC722")), leveNextIndexOf, leveNextIndexOf + leveNextSize, @@ -476,6 +476,8 @@ public class LiveGiftPopup extends AbsDialogFragment { userNextLevelIndexOf, userNextLevelIndexOf + userNextLevelSize, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); leaveHint.setText(builder); + progressBar.setProgress(nextLeve); + progressBar.setMax(maxLeve); } else { String hint = getString(R.string.reach_the_top); leaveHint.setText(hint);