[8.0.0][opt]三联屏显示时才处理预测和决策数据
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.mogo.och.unmanned.passenger.ui.homepage
|
||||
|
||||
import androidx.lifecycle.ViewModel
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.och.common.module.biz.birdge.BridgeListener
|
||||
import com.mogo.och.common.module.biz.birdge.BridgeManager
|
||||
@@ -56,11 +57,15 @@ class HomeViewModel : ViewModel(), BridgeListener, OrderListener {
|
||||
fun checkScreenChange(){
|
||||
CallerLogger.d(TAG,"havePredictionInfos:${havePredictionInfos}--haveTrajectoryInfos:${haveTrajectoryInfos}--order:${order}")
|
||||
if(order!=null&&havePredictionInfos&&havePredictionInfos){
|
||||
FunctionBuildConfig.isDrawDecIdentifyData = true
|
||||
FunctionBuildConfig.isDrawPreIdentifyData = true
|
||||
// 展示三联屏
|
||||
BizLoopManager.runInMainThread{
|
||||
this.viewCallback?.showThreeScreen()
|
||||
}
|
||||
}else{
|
||||
FunctionBuildConfig.isDrawDecIdentifyData = false
|
||||
FunctionBuildConfig.isDrawPreIdentifyData = false
|
||||
// 展示二联屏幕
|
||||
BizLoopManager.runInMainThread{
|
||||
this.viewCallback?.showTwoScreen()
|
||||
|
||||
@@ -274,7 +274,7 @@ public class PredictionOverlayDrawer {
|
||||
if (mPolylineOptions == null) {
|
||||
mPolylineOptions = options;
|
||||
}
|
||||
if (FunctionBuildConfig.isDrawDecIdentifyData) {
|
||||
if (FunctionBuildConfig.isDrawPreIdentifyData) {
|
||||
if (preViewType == 2) {
|
||||
overlayManager.showOrUpdateLine(options, SMALL_PRED_MAP2);
|
||||
} else if (preViewType == 3) {
|
||||
|
||||
Reference in New Issue
Block a user