Merge branch 'dev' of gitlab.zhidaoauto.com:ecos/yycp-service/Launcher into dev

This commit is contained in:
wangcongtao
2020-06-12 11:04:38 +08:00
7 changed files with 38 additions and 13 deletions

View File

@@ -38,15 +38,8 @@ class MogoMainService extends Service implements IMogoLocationListener {
*/
private IMogoLocationClient mLocationClient;
@Nullable
@Override
public IBinder onBind( Intent intent ) {
return null;
}
@Override
public int onStartCommand( Intent intent, int flags, int startId ) {
public void onCreate() {
Logger.d( TAG, "基本服务启动" );
mServiceApis = ( IMogoServiceApis ) ARouter.getInstance().build( MogoServicePaths.PATH_SERVICE_APIS ).navigation();
initAndStartLocation();
@@ -57,6 +50,16 @@ class MogoMainService extends Service implements IMogoLocationListener {
initADAS();
}, 2_000L
);
}
@Nullable
@Override
public IBinder onBind( Intent intent ) {
return null;
}
@Override
public int onStartCommand( Intent intent, int flags, int startId ) {
return START_STICKY;
}