From 44560f8978fccae1fafa18acb5ac6df7915bf067 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 19 Apr 2023 12:54:44 +0800 Subject: [PATCH] [2.15.0]code opt --- .../com/mogo/eagle/core/function/hmi/ui/widget/RomaView.kt | 2 +- .../core/function/business/ai/AiCloudIdentifyDataManager.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/RomaView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/RomaView.kt index 51ab0766d8..38e830b0b7 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/RomaView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/RomaView.kt @@ -33,6 +33,7 @@ class RomaView @JvmOverloads constructor( if(!click){ return@setOnClickListener } + click = false romaMode = !romaMode // 司机屏发送事件给乘客屏 if (romaMode) { @@ -46,7 +47,6 @@ class RomaView @JvmOverloads constructor( "1".toByteArray() ) } - click = false } } diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/ai/AiCloudIdentifyDataManager.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/ai/AiCloudIdentifyDataManager.kt index 06a98493d3..30031b6f68 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/ai/AiCloudIdentifyDataManager.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/ai/AiCloudIdentifyDataManager.kt @@ -174,8 +174,9 @@ class AiCloudIdentifyDataManager : IMogoMapListener, IReceivedMsgListener, TAG, "requestIdentifyRange error : $it , startRange:$START_METRE, endRange:$END_METRE, dataReceive:$dataReceive" ) - CallerMapRomaListener.invokeMapRoma(false) updateLongSightLevel(false) + CallerMapRomaListener.invokeMapRoma(false) + sendMsgToServer(TelematicConstant.OPEN_ROMA_STATUS, "4".toByteArray()) if(DebugConfig.isDebug()){ ToastUtils.showShort("漫游请求异常,msg:$it") }