opt
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user