fix bug of location upload data

This commit is contained in:
zhongchao
2021-11-17 18:48:46 +08:00
parent 88c2718704
commit 063f00c203
4 changed files with 10 additions and 27 deletions

View File

@@ -68,6 +68,7 @@ import com.mogo.service.statusmanager.StatusDescriptor;
import com.mogo.utils.NetworkUtils;
import com.mogo.eagle.core.utilcode.mogo.thread.WorkThreadHandler;
import com.mogo.utils.logger.Logger;
import com.zhidao.locupload.service.UploadDataService;
import org.json.JSONObject;
@@ -380,10 +381,6 @@ public class MogoServices implements IMogoMapListener,
CarIconDisplayStrategy.getInstance().changeCarIconStatus( mStatusManager.isSeekHelping() );
if ( DebugConfig.isLaunchLocationService() ) {
initLocationServiceProcess( context );
}
AutoPilotRemoteController.getInstance().start();
Intent intent = new Intent( "com.freedom.ser.ACTION" );
@@ -396,19 +393,6 @@ public class MogoServices implements IMogoMapListener,
TimeDelayUploadManager.getInstance().init(context);
}
public void initLocationServiceProcess( Context context ) {
try {
Intent intent = new Intent();
intent.setAction( "com.zhidao.locationinfo.service.uploaddataservice" );
ComponentName cn = new ComponentName( "com.zhidao.locationinfo", "com.zhidao.locationinfo.service.UploadDataService" );
intent.setComponent( cn );
context.startService( intent );
} catch ( Exception e ) {
Logger.e( TAG, e, "start location service error." );
}
}
private void initWorkThread() {
mThreadHandler = new RefreshWorkThreadHandler( WorkThreadHandler.getInstance().getLooper() ) {
@Override

View File

@@ -146,7 +146,6 @@ abstract class StatusChangedAdapter implements IMogoStatusChangedListener {
mIsFirstAccOn = false;
return;
}
MogoServices.getInstance().initLocationServiceProcess(AbsMogoApplication.getApp());
MogoApisHandler.getInstance().getApis().getAdasControllerApi().showADAS();
MarkerServiceHandler.getApis().getMapServiceApi().getSingletonLocationClient(AbsMogoApplication.getApp()).start();
MarkerServiceHandler.getApis().getMapServiceApi().getMarkerManager(AbsMogoApplication.getApp()).removeMarkers();