[6.5.0]行程总结调整车辆服务次数

This commit is contained in:
xuxinchao
2024-07-12 11:13:22 +08:00
parent 383b431b2b
commit 230e3bfd7b
3 changed files with 5 additions and 22 deletions

View File

@@ -155,8 +155,6 @@ open class AutomaticExplorationView @JvmOverloads constructor(
})
automaticExplorationAdapter?.setData(dataList)
//每出现一次自动探查,增加相应的服务次数
//车辆服务次数
AutopilotSummaryInfo.vehicleServiceNum += 31
//道路信息提醒次数
AutopilotSummaryInfo.infoTipNum += 9
//车辆行为提醒次数

View File

@@ -60,8 +60,6 @@ open class ItinerarySummaryDialog(context: Context, isDriver: Boolean, theme: In
ivSummaryClose = findViewById(R.id.ivSummaryClose)
ivSummaryClose?.setOnClickListener {
//对本次服务记录清零
AutopilotSummaryInfo.totalLength = 0
AutopilotSummaryInfo.vehicleServiceNum = 0
AutopilotSummaryInfo.lightServicesNum = 0
AutopilotSummaryInfo.infoTipNum = 0
AutopilotSummaryInfo.vehicleTipNum = 0
@@ -99,13 +97,14 @@ open class ItinerarySummaryDialog(context: Context, isDriver: Boolean, theme: In
tvEfficiencyNum?.text = num.toString()
//小智总结
tvSummaryZhiContent = findViewById(R.id.tvSummaryZhiContent)
AutopilotSummaryInfo.vehicleServiceNum = AutopilotSummaryInfo.lightServicesNum
+AutopilotSummaryInfo.infoTipNum + AutopilotSummaryInfo.vehicleTipNum + AutopilotSummaryInfo.vulnerableTipNum
val vehicleServiceNum = AutopilotSummaryInfo.infoTipNum+ AutopilotSummaryInfo.vehicleTipNum + AutopilotSummaryInfo.vulnerableTipNum + AutopilotSummaryInfo.lightServicesNum + CallerAutoPilotStatusListenerManager.getRoadCount()
val smartRoadLen = random.nextInt(mileage.toInt())
if(isDriver){
tvSummaryZhiContent?.text = "全程 ${(mileage/1000).toInt()}km智慧道路护航 ${(smartRoadLen/1000)}km全息感知覆盖率 ${(smartRoadLen*100/mileage).toInt()}%,车辆服务次数${AutopilotSummaryInfo.vehicleServiceNum}"
tvSummaryZhiContent?.text = "全程 ${(mileage/1000).toInt()}km智慧道路护航 ${(smartRoadLen/1000)}km全息感知覆盖率 ${(smartRoadLen*100/mileage).toInt()}%,车辆服务次数${vehicleServiceNum}"
}else{
tvSummaryZhiContent?.text = "旅途全长 ${(mileage/1000).toInt()} km全感知覆盖率 ${(smartRoadLen*100/mileage).toInt()}%,车辆服务次数${AutopilotSummaryInfo.vehicleServiceNum}"
tvSummaryZhiContent?.text = "旅途全长 ${(mileage/1000).toInt()} km全感知覆盖率 ${(smartRoadLen*100/mileage).toInt()}%,车辆服务次数${vehicleServiceNum}"
}
}