[2.13.0]wait to finish
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user