[Fix]解决ALocationClien定位信息因为使用实时上传的时候当接入工控机位置回调信息会丢失
移除日志
This commit is contained in:
@@ -50,8 +50,8 @@ dependencies {
|
||||
implementation rootProject.ext.dependencies.rxandroid
|
||||
|
||||
kapt rootProject.ext.dependencies.aroutercompiler
|
||||
|
||||
implementation rootProject.ext.dependencies.adasHigh
|
||||
implementation project(':modules:mogo-module-common')
|
||||
|
||||
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
|
||||
implementation rootProject.ext.dependencies.mogo_core_data
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.mogo.eagle.core.function.impl.map
|
||||
|
||||
import android.content.Context
|
||||
import com.alibaba.android.arouter.facade.annotation.Route
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths
|
||||
import com.mogo.eagle.core.function.api.map.location.IMoGoLocationUpdater4AutoPilot
|
||||
import com.mogo.eagle.core.utilcode.util.Utils
|
||||
import com.mogo.module.common.MogoApisHandler
|
||||
import com.mogo.service.IMogoServiceApis
|
||||
|
||||
|
||||
@Route(path = MogoServicePaths.PATH_MAP_LOCATION_UPDATE_4_AUTO_PILOT)
|
||||
class MoGoLocationUpdater4AutoPilot: IMoGoLocationUpdater4AutoPilot {
|
||||
|
||||
private val TAG = "MoGoLocationUpdater4AutoPilot"
|
||||
|
||||
override val functionName = TAG;
|
||||
|
||||
private val api: IMogoServiceApis? by lazy {
|
||||
MogoApisHandler.getInstance().apis
|
||||
}
|
||||
|
||||
override fun updateLocation(location: Any?) {
|
||||
api?.mapServiceApi?.getSingletonLocationClient(Utils.getApp())?.updateLocation(location);
|
||||
}
|
||||
|
||||
override fun init(context: Context?) {
|
||||
//DO NOTING
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
//DO NOTHING
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user