This commit is contained in:
wangcongtao
2019-12-31 10:37:41 +08:00
parent e5d17bb305
commit 05bd793763
28 changed files with 592 additions and 175 deletions

View File

@@ -36,7 +36,7 @@ public class ALocationClient implements IMogoLocationClient {
mClient = new AMapLocationClient( context );
mClient.setLocationListener( mListener );
mLastLocation = ObjectUtils.fromAMap( mClient.getLastKnownLocation() );
if ( mLastLocation != null ) {
if ( mLastLocation == null ) {
mLastLocation = new MogoLocation();
}
}

View File

@@ -2,6 +2,8 @@ package com.mogo.map;
import android.content.Context;
import com.mogo.utils.logger.Logger;
/**
* @author congtaowang
* @since 2019-12-20
@@ -9,6 +11,8 @@ import android.content.Context;
* 描述
*/
public class MogoMap {
private static final String TAG = "MogoMap";
private IMogoMap mMap;
private Context mContext;
@@ -30,6 +34,7 @@ public class MogoMap {
}
public void init( Context context, IMogoMap map ) {
Logger.d( TAG, "init mogomap" );
this.mContext = context;
this.mMap = map;
}