Merge branch 'v1.5.0/hour_ranking' into v1.5.0/test

This commit is contained in:
Max
2023-11-08 18:15:47 +08:00

View File

@@ -118,7 +118,11 @@ class RoomHourRankWidget : FrameLayout, ILog {
}
private fun updateDiff(diff: Long) {
val value = FormatUtils.formatUnit(diff, 10000, "w")
val value = if (diff >= (1000 * 10000)) {
"999w+"
} else {
FormatUtils.formatUnit(diff, 10000, "w")
}
SpannableTextBuilder(binding.tvDiff).appendText(
"距上一名差 ",
textColor = context.getColorById(R.color.white)