异常上报
修改历史记录21条为20条
This commit is contained in:
@@ -35,7 +35,7 @@ class IPCReportManager : IMoGoAutopilotStatusListener {
|
|||||||
override fun onAutopilotGuardian(guardianInfo: MogoReportMsg.MogoReportMessage?) {
|
override fun onAutopilotGuardian(guardianInfo: MogoReportMsg.MogoReportMessage?) {
|
||||||
guardianInfo?.let{
|
guardianInfo?.let{
|
||||||
if(it.level=="error"){
|
if(it.level=="error"){
|
||||||
if(ipcReportList.size>20){
|
if(ipcReportList.size>19){
|
||||||
ipcReportList.removeLast()
|
ipcReportList.removeLast()
|
||||||
}
|
}
|
||||||
ipcReportList.add(0,
|
ipcReportList.add(0,
|
||||||
|
|||||||
@@ -1023,7 +1023,7 @@ class MoGoHmiFragment : MvpFragment<MoGoHmiContract.View?, HmiPresenter?>(),
|
|||||||
override fun onAutopilotGuardian(guardianInfo: MogoReportMsg.MogoReportMessage?) {
|
override fun onAutopilotGuardian(guardianInfo: MogoReportMsg.MogoReportMessage?) {
|
||||||
ThreadUtils.runOnUiThread{
|
ThreadUtils.runOnUiThread{
|
||||||
guardianInfo?.let {
|
guardianInfo?.let {
|
||||||
if(reportList.size>20){
|
if(reportList.size>19){
|
||||||
reportList.removeLast()
|
reportList.removeLast()
|
||||||
}
|
}
|
||||||
reportList.add(0,
|
reportList.add(0,
|
||||||
|
|||||||
Reference in New Issue
Block a user