[8.1.0]动态配置鹰眼显示MAP版本改为SP存储
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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", "")
|
||||
|
||||
//业务状态信息
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user