[dev_arch_opt_3.0] 优化代码

This commit is contained in:
lixiaopeng
2023-02-25 20:11:05 +08:00
parent 891cdc97ca
commit 6af8c12967
2 changed files with 4 additions and 4 deletions

View File

@@ -42,10 +42,10 @@ class LimitingVelocityView constructor(
if (limitingVelocity > 0) {
visibility = View.VISIBLE
tvLimitingVelocity.text = "$limitingVelocity"
tvLimitingSource.text = DataSourceType.getName(sourceType)
tvLimitingSource?.text = DataSourceType.getName(sourceType)
} else {
visibility = View.GONE
tvLimitingSource.text = ""
tvLimitingSource?.text = ""
}
}
}