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 e168fd8aac..b99a477056 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 @@ -122,6 +122,7 @@ import com.mogo.eagle.core.utilcode.util.DeviceUtils import com.mogo.eagle.core.utilcode.util.FileUtils import com.mogo.eagle.core.utilcode.util.KeyboardUtils import com.mogo.eagle.core.utilcode.util.NetworkUtils +import com.mogo.eagle.core.utilcode.util.SPUtils import com.mogo.eagle.core.utilcode.util.ScreenUtils import com.mogo.eagle.core.utilcode.util.StringUtils import com.mogo.eagle.core.utilcode.util.ThreadUtils @@ -609,11 +610,13 @@ internal class DebugSettingView @JvmOverloads constructor( //动态配置鹰眼显示MAP版本 if(AppConfigInfo.mapShowName.isEmpty()){ AppConfigInfo.mapShowName = CallerAutoPilotStatusListenerManager.getDockerVersion()+"" + SPUtils.getInstance().put("mapShowName", AppConfigInfo.mapShowName) } etMapShowName.setText(AppConfigInfo.mapShowName) etMapShowName.text?.let { etMapShowName.setSelection(it.length) } btnEnsureMap.setOnClickListener { AppConfigInfo.mapShowName = etMapShowName.text.toString() + SPUtils.getInstance().put("mapShowName", AppConfigInfo.mapShowName) tvIpcVersionInfo.text = "MAP:${AppConfigInfo.mapShowName}" tvIpcVersionInfoKey.text = "MAP:${AppConfigInfo.mapShowName}" CallerMapShowNameManager.invokeMapShowName(AppConfigInfo.mapShowName) diff --git a/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/app/AppConfigInfo.kt b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/app/AppConfigInfo.kt index 9d47139a2a..b839e51fe3 100644 --- a/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/app/AppConfigInfo.kt +++ b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/app/AppConfigInfo.kt @@ -2,6 +2,7 @@ package com.mogo.eagle.core.data.app import android.os.Build import com.mogo.eagle.core.utilcode.util.AppUtils +import com.mogo.eagle.core.utilcode.util.SPUtils /** * @author xiaoyuzhou @@ -64,7 +65,7 @@ object AppConfigInfo { var slamMapVersion: String ="" //鹰眼可动态展示的MAP版本 @Volatile - var mapShowName: String = "" + var mapShowName: String = SPUtils.getInstance().getString("mapShowName", "") //业务状态信息 /**