From 2deb5c531fd25c1192c74bdb0e1dec864c78526f Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Thu, 19 May 2022 16:27:25 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=E5=A4=9A=E5=B1=8F=E5=8F=91=E9=80=81?= =?UTF-8?q?=E3=80=81=E6=8E=A5=E6=94=B6=E6=95=B0=E6=8D=AE=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=88=B3=E6=98=BE=E7=A4=BA=E5=8D=95=E4=BD=8D=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=88=B0=E6=AF=AB=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eagle/core/function/hmi/ui/setting/DebugSettingView.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt index 7a63baa4bc..5c3ea8b1ce 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt @@ -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 -> "乘客屏接收数据" } - }的最新时间为:${SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Date(AppConfigInfo.teleTimeStamp))}" + }的最新时间为:${simpleDateFormat.format(AppConfigInfo.teleTimeStamp)}" ) tvLocationEnabled.text = Html.fromHtml(