[6.1.0] add func of trace log enable and change the msgbox move to datacenter start

This commit is contained in:
zhongchao
2023-10-08 15:31:13 +08:00
parent e33c9894a7
commit 3be5391aca
9 changed files with 52 additions and 4 deletions

View File

@@ -66,6 +66,7 @@ import com.mogo.eagle.core.function.call.telematic.CallerTelematicManager
import com.mogo.eagle.core.function.hmi.R
import com.mogo.eagle.core.function.hmi.ui.logcatch.ILogViewListener
import com.mogo.eagle.core.function.hmi.ui.logcatch.LogInfoView
import com.mogo.eagle.core.function.hmi.ui.utils.HmiActionLog
import com.mogo.eagle.core.utilcode.kotlin.currentPadding
import com.mogo.eagle.core.utilcode.kotlin.lifecycleOwner
import com.mogo.eagle.core.utilcode.kotlin.onClick
@@ -1352,6 +1353,16 @@ internal class DebugSettingView @JvmOverloads constructor(
mogoMapData.get()?.setDebugMode(isChecked)
}
/**
* 设置是否开启pre check, true-打开false-关闭
*/
tbPreCheckEnable.isChecked = SharedPrefsMgr.getInstance(context).getBoolean("TRACE_ENABLE",true)
tbPreCheckEnable.setOnCheckedChangeListener { _, isChecked ->
HmiActionLog.hmiAction(TAG + "TRACE_ENABLE",isChecked)
SharedPrefsMgr.getInstance(context).putBoolean("TRACE_ENABLE",isChecked)
CallerDevaToolsManager.setTraceEnable(isChecked)
}
cbTraceLog.isChecked = CallerDevaToolsManager.getTraceLogStatus()
//链路Log输出日志
cbTraceLog.setOnCheckedChangeListener { _, isChecked ->

View File

@@ -46,8 +46,6 @@ public abstract class MainMoGoApplication extends AbsMogoApplication {
initTipToast();
initModules();
//todo
CallerMsgBoxManager.INSTANCE.queryAllMessages(this);
}
/**

View File

@@ -2099,6 +2099,17 @@
android:textOn="关闭「HD-MAP」Log"
android:textSize="@dimen/dp_24" />
<ToggleButton
android:id="@+id/tbPreCheckEnable"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:padding="@dimen/dp_20"
android:gravity="center"
android:textOff="打开链路检查"
android:textOn="关闭链路检查"
android:textSize="@dimen/dp_24" />
</com.google.android.flexbox.FlexboxLayout>
<com.google.android.flexbox.FlexboxLayout