Merge branch 'master' into dev_6.5.4_tmp

This commit is contained in:
zlzw 2023-08-04 16:15:25 +08:00
commit c8f443c105

View File

@ -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);