[FeedBack]反馈代码提交
[feedback]优化ui
This commit is contained in:
@@ -73,6 +73,13 @@ object CallerAutoPilotManager {
|
||||
providerApi?.recordPackage(type, id, duration)
|
||||
}
|
||||
|
||||
/**
|
||||
* 停止录制bag包
|
||||
*/
|
||||
fun stopRecord(type: Int, id: Int) {
|
||||
providerApi?.stopRecord(type, id)
|
||||
}
|
||||
|
||||
fun setEnableLog(isEnableLog: Boolean) {
|
||||
providerApi?.setEnableLog(isEnableLog)
|
||||
}
|
||||
@@ -124,4 +131,11 @@ object CallerAutoPilotManager {
|
||||
fun setControlAutopilotCarAuto(isEnable: Boolean) {
|
||||
providerApi?.setControlAutopilotCarAuto(isEnable)
|
||||
}
|
||||
|
||||
/**
|
||||
* 车机与工控机是否连上了
|
||||
*/
|
||||
fun isConnected(): Boolean {
|
||||
return providerApi?.isConnected() ?: false
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.mogo.eagle.core.function.call.devatools
|
||||
|
||||
import android.content.Context
|
||||
import android.view.ContextMenu
|
||||
import android.view.View
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths
|
||||
import com.mogo.eagle.core.data.chain.ChainLogParam
|
||||
@@ -64,4 +66,11 @@ object CallerDevaToolsManager {
|
||||
fun onReceiveBadCaseRecord(record: RecordPanelOuterClass.RecordPanel) {
|
||||
devaToolsProviderApi?.onReceiveBadCaseRecord(record)
|
||||
}
|
||||
|
||||
/**
|
||||
* 展示反馈界面
|
||||
*/
|
||||
fun showFeedbackView(ctx: Context) {
|
||||
devaToolsProviderApi?.showFeedbackWindow(ctx)
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.mogo.eagle.core.function.call.hmi
|
||||
|
||||
import android.view.View
|
||||
import android.view.WindowManager.LayoutParams
|
||||
import com.alibaba.android.arouter.launcher.ARouter
|
||||
import com.mogo.eagle.core.data.constants.MoGoFragmentPaths
|
||||
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
|
||||
@@ -289,10 +290,10 @@ object CallerHmiManager : CallerBase() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 展示BadCase浮层
|
||||
* 展示浮层
|
||||
*/
|
||||
fun showBadCaseFloat(tag: String = "BadCaseFloat", floatView: View): (() -> Unit)? {
|
||||
return waringProviderApi?.showBadCaseFloat(tag, floatView)
|
||||
fun showFloatWindow(tag: String, floatView: View, attrs: LayoutParams? = null): (() -> Unit)? {
|
||||
return waringProviderApi?.showFloatWindow(tag, floatView, attrs)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user