[Update]多屏发送、接收数据时间戳显示单位最小到毫秒

This commit is contained in:
chenfufeng
2022-05-19 16:27:25 +08:00
parent 86d1727ef1
commit 2deb5c531f

View File

@@ -141,6 +141,10 @@ class DebugSettingView @JvmOverloads constructor(
//剪切板
private var clipboardManager: ClipboardManager ?= null
private val simpleDateFormat by lazy {
SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS")
}
init {
LayoutInflater.from(context).inflate(R.layout.view_debug_setting, this, true)
initView()
@@ -1488,7 +1492,7 @@ class DebugSettingView @JvmOverloads constructor(
}
else -> "乘客屏接收数据"
}
}的最新时间为:<font color='red'>${SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Date(AppConfigInfo.teleTimeStamp))}"
}的最新时间为:<font color='red'>${simpleDateFormat.format(AppConfigInfo.teleTimeStamp)}"
)
tvLocationEnabled.text = Html.fromHtml(