Merge branch 'v1.5.0/hour_ranking' into v1.5.0/test
This commit is contained in:
@@ -118,7 +118,11 @@ class RoomHourRankWidget : FrameLayout, ILog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateDiff(diff: Long) {
|
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(
|
SpannableTextBuilder(binding.tvDiff).appendText(
|
||||||
"距上一名差 ",
|
"距上一名差 ",
|
||||||
textColor = context.getColorById(R.color.white)
|
textColor = context.getColorById(R.color.white)
|
||||||
|
Reference in New Issue
Block a user