[2.13.0]wait to finish

This commit is contained in:
zhongchao
2022-11-28 11:11:59 +08:00
parent ebc451d00d
commit 12cffa44f7
2 changed files with 9 additions and 4 deletions

View File

@@ -72,10 +72,14 @@ object TrackerSourceColorHelper {
*/
@SuppressLint("NewApi")
fun isIPC(data: TrackedObject): Boolean {
val source = data.trackedSourceList.stream().allMatch {
it.source != 2
return if (data.trackedSourceList.size == 1) { // 如果仅有一个类型
val source = data.trackedSourceList.stream().allMatch {
it.source == 1
}
source
} else {
false
}
return source
}
/**
@@ -88,7 +92,7 @@ object TrackerSourceColorHelper {
}
if (source) {
val first = data.trackedSourceList.stream()
.filter { trackedSource: TrackedSource -> trackedSource.source == 2}.findFirst()
.filter { trackedSource: TrackedSource -> trackedSource.source == 2 }.findFirst()
if (first.isPresent) {
val subObu = first.get().subSourceList.stream().anyMatch {
it.source == 1

View File

@@ -81,6 +81,7 @@ class NoticeSocketManager {
@Override
public void onMsgReceived(NoticeTrafficStylePushData obj) {
CallerLogger.INSTANCE.d(M_NOTICE + TAG, "301001-- 交警类型公告数据:" + GsonUtil.jsonFromObject(obj));
// todo
CallerHmiManager.INSTANCE.showTrafficBanner(obj);
}
};