[2.13.0]gradle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user