From eb3f2f2aa216e66b2aa28113008b4e2b15b8772b Mon Sep 17 00:00:00 2001 From: xuxinchao <13522809046@163.com> Date: Wed, 25 May 2022 11:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改历史记录21条为20条 --- .../com/mogo/eagle/core/function/report/IPCReportManager.kt | 2 +- .../java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/report/IPCReportManager.kt b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/report/IPCReportManager.kt index 08dc07db56..95be0dd32a 100644 --- a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/report/IPCReportManager.kt +++ b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/report/IPCReportManager.kt @@ -35,7 +35,7 @@ class IPCReportManager : IMoGoAutopilotStatusListener { override fun onAutopilotGuardian(guardianInfo: MogoReportMsg.MogoReportMessage?) { guardianInfo?.let{ if(it.level=="error"){ - if(ipcReportList.size>20){ + if(ipcReportList.size>19){ ipcReportList.removeLast() } ipcReportList.add(0, diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt index 6cce19c533..d81c5208d4 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt @@ -1023,7 +1023,7 @@ class MoGoHmiFragment : MvpFragment(), override fun onAutopilotGuardian(guardianInfo: MogoReportMsg.MogoReportMessage?) { ThreadUtils.runOnUiThread{ guardianInfo?.let { - if(reportList.size>20){ + if(reportList.size>19){ reportList.removeLast() } reportList.add(0,