[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)
|
||||
|
||||
Reference in New Issue
Block a user