添加弹框取消时间(默认0s)

This commit is contained in:
liujing
2020-09-22 17:05:46 +08:00
parent 5c5697fe3f
commit bfc346e48a
2 changed files with 20 additions and 0 deletions

View File

@@ -33,6 +33,13 @@ public class V2XMessageEntity<T> implements Serializable {
*/
boolean showState;
/**
* 是否需要判断重复事件
* true-判断false-不判断
* 默认需要判断
*/
boolean isNeedCompareSameScenario = true;
/**
* 场景具体的数据内容
*/
@@ -54,6 +61,14 @@ public class V2XMessageEntity<T> implements Serializable {
this.showState = showState;
}
public boolean isNeedCompareSameScenario() {
return isNeedCompareSameScenario;
}
public void setNeedCompareSameScenario(boolean needCompareSameScenario) {
isNeedCompareSameScenario = needCompareSameScenario;
}
public T getContent() {
return content;
}

View File

@@ -376,10 +376,15 @@ public class TanluListWindow extends RelativeLayout implements IMogoMarkerClickL
roadEventEntity.setNoveltyInfo(exploreWay);
roadEventEntity.setPoiType(exploreWay.getPoiType());
roadEventEntity.setOnlyShow(true);
roadEventEntity.setExpireTime(20000);
//地理位置
MarkerLocation location = exploreWay.getLocation();
roadEventEntity.setLocation(location);
V2XMessageEntity v2XMessageEntity = new V2XMessageEntity();
v2XMessageEntity.setType(V2XMessageEntity.V2XTypeEnum.ALERT_ROAD_WARNING);
v2XMessageEntity.setShowState(true);
v2XMessageEntity.setNeedCompareSameScenario(false);
v2XMessageEntity.setContent(roadEventEntity);
//更新数据