version:1.2
fix: update:更新app name,增加快捷控制
This commit is contained in:
@@ -74,8 +74,13 @@ public class AmapManager {
|
||||
String aMapLocationjson = mMMKV.decodeString(AMAPLOCATION_JSON_KEY, "");
|
||||
Type type = new TypeToken<BDLocation>() {
|
||||
}.getType();
|
||||
BDLocation bdLocation = new Gson().fromJson(aMapLocationjson, type);
|
||||
return bdLocation;
|
||||
try {
|
||||
BDLocation bdLocation = new Gson().fromJson(aMapLocationjson, type);
|
||||
return bdLocation;
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "getNowMapLocation: " + e.getMessage());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return this.mLocation;
|
||||
}
|
||||
@@ -123,7 +128,7 @@ public class AmapManager {
|
||||
* 定位结果回调,重写onReceiveLocation方法,可以直接拷贝如下代码到自己工程中修改
|
||||
*
|
||||
*/
|
||||
private BDAbstractLocationListener mListener = new BDAbstractLocationListener() {
|
||||
private BDAbstractLocationListener mListener = new BDAbstractLocationListener() {
|
||||
|
||||
/**
|
||||
* 定位请求回调函数
|
||||
|
||||
Reference in New Issue
Block a user