[2.13.0]gradle

This commit is contained in:
zhongchao
2022-11-28 10:21:47 +08:00
parent 37f7414744
commit ebc451d00d
7 changed files with 3 additions and 26 deletions

View File

@@ -73,7 +73,7 @@ object TrackerSourceColorHelper {
@SuppressLint("NewApi")
fun isIPC(data: TrackedObject): Boolean {
val source = data.trackedSourceList.stream().allMatch {
it.source != 4
it.source != 2
}
return source
}
@@ -84,11 +84,11 @@ object TrackerSourceColorHelper {
@SuppressLint("NewApi")
fun isObu(data: TrackedObject): Pair<SubSource?, Boolean> {
val source = data.trackedSourceList.stream().anyMatch {
it.source == 4
it.source == 2
}
if (source) {
val first = data.trackedSourceList.stream()
.filter { trackedSource: TrackedSource -> trackedSource.source == 4 }.findFirst()
.filter { trackedSource: TrackedSource -> trackedSource.source == 2}.findFirst()
if (first.isPresent) {
val subObu = first.get().subSourceList.stream().anyMatch {
it.source == 1