「优化」

增加了实时路况得展示
This commit is contained in:
董宏宇
2020-08-04 19:54:17 +08:00
parent 0b2e3ee690
commit dcf08a0c5e

View File

@@ -1,7 +1,7 @@
package com.mogo.module.v2x.utils; package com.mogo.module.v2x.utils;
import com.mogo.module.v2x.R;
import com.mogo.module.common.entity.V2XPoiTypeEnum; import com.mogo.module.common.entity.V2XPoiTypeEnum;
import com.mogo.module.v2x.R;
/** /**
* @ProjectName: MoGoModulSafeDriving * @ProjectName: MoGoModulSafeDriving
@@ -59,6 +59,14 @@ public class EventTypeUtils {
case V2XPoiTypeEnum.FOURS_ACCIDENT: case V2XPoiTypeEnum.FOURS_ACCIDENT:
str = "交通事故"; str = "交通事故";
break; break;
// 实时路况
case V2XPoiTypeEnum.FOURS_LIVING:
str = "实时路况";
break;
// 身边
case V2XPoiTypeEnum.FOURS_NEALY:
str = "身边事件";
break;
default: default:
str = "其它道路事件"; str = "其它道路事件";
break; break;
@@ -80,6 +88,8 @@ public class EventTypeUtils {
strBg = R.drawable.bg_v2x_event_type_blue; strBg = R.drawable.bg_v2x_event_type_blue;
break; break;
case V2XPoiTypeEnum.FOURS_BLOCK_UP: // 拥堵 case V2XPoiTypeEnum.FOURS_BLOCK_UP: // 拥堵
case V2XPoiTypeEnum.FOURS_LIVING: // 实时路况
case V2XPoiTypeEnum.FOURS_NEALY: // 身边
strBg = R.drawable.bg_v2x_event_type_orange; strBg = R.drawable.bg_v2x_event_type_orange;
break; break;
case V2XPoiTypeEnum.TRAFFIC_CHECK:// 交通检查 case V2XPoiTypeEnum.TRAFFIC_CHECK:// 交通检查
@@ -117,6 +127,8 @@ public class EventTypeUtils {
case V2XPoiTypeEnum.FOURS_FOG://浓雾 case V2XPoiTypeEnum.FOURS_FOG://浓雾
case V2XPoiTypeEnum.FOURS_ICE://结冰 case V2XPoiTypeEnum.FOURS_ICE://结冰
case V2XPoiTypeEnum.FOURS_ACCIDENT://事故 case V2XPoiTypeEnum.FOURS_ACCIDENT://事故
case V2XPoiTypeEnum.FOURS_NEALY://身边
case V2XPoiTypeEnum.FOURS_LIVING://实时路况
isRoadEvent = true; isRoadEvent = true;
break; break;
} }