From ebcfddf450beb660ddacb82213f22e9691f0a30d Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Fri, 4 Aug 2023 16:14:36 +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 --- .../src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java | 6 ++++-- 1 file changed, 4 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 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);