事件只展示不播报设置

This commit is contained in:
liujing
2020-09-22 15:35:45 +08:00
parent 48e2eafe8d
commit 7a0ba9e2c4
2 changed files with 3 additions and 0 deletions

View File

@@ -375,6 +375,7 @@ public class TanluListWindow extends RelativeLayout implements IMogoMarkerClickL
V2XRoadEventEntity roadEventEntity = new V2XRoadEventEntity();
roadEventEntity.setNoveltyInfo(exploreWay);
roadEventEntity.setPoiType(exploreWay.getPoiType());
roadEventEntity.setOnlyShow(true);
roadEventEntity.setExpireTime(20000);
//地理位置

View File

@@ -89,7 +89,9 @@ public class V2XRoadEventScenario extends AbsV2XScenario<V2XRoadEventEntity> imp
try {
if (getV2XMessageEntity() != null && getV2XMessageEntity().getContent() != null) {
//只展示不播报 不广播
boolean onlyShow = getV2XMessageEntity().isOnlyShow();
if (onlyShow == false){
// 设置TTS
getV2XMessageEntity().getContent().getTts(false);