update mogoaiCloudsdk version and add log check logic
This commit is contained in:
@@ -211,7 +211,6 @@ public class AdasRecognizedResultDrawer extends BaseDrawer {
|
||||
return;
|
||||
}
|
||||
Iterator<TrafficData> iterator = mLastPositions.values().iterator();
|
||||
Log.d("EmArrow", "removeUselessLastRecord size : " + mLastPositions.size());
|
||||
while (iterator.hasNext()) {
|
||||
TrafficData result = iterator.next();
|
||||
long internal = result.getSatelliteTime() - getCurSatelliteTime();
|
||||
|
||||
@@ -253,7 +253,6 @@ public class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClic
|
||||
return;
|
||||
}
|
||||
Iterator<SocketDownData.CloudRoadDataProto> iterator = mLastPositions.values().iterator();
|
||||
Log.d("EmArrow", "removeUselessLastRecord size : " + mLastPositions.size());
|
||||
while (iterator.hasNext()) {
|
||||
SocketDownData.CloudRoadDataProto result = iterator.next();
|
||||
long internal = Long.parseLong(adasControllerApi.getSatelliteTime()) - result.getSatelliteTime();
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
package com.mogo.module.common.kt
|
||||
|
||||
import androidx.annotation.RestrictTo
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.MainScope
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2021/3/3
|
||||
*
|
||||
* 描述
|
||||
*/
|
||||
object ScopeManager {
|
||||
|
||||
private var mScope = MainScope()
|
||||
private var mAdasScope = MainScope()
|
||||
private var mThreadScope: RestrictTo.Scope? = null
|
||||
|
||||
fun mainScope(runnable: Runnable?) {
|
||||
mScope.launch(Dispatchers.Default) {
|
||||
runnable?.apply {
|
||||
run()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun adasScope(runnable: Runnable?) {
|
||||
mAdasScope.launch(Dispatchers.Default) {
|
||||
runnable?.apply {
|
||||
run()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user