version:1.2

fix:
update:更新app name,增加快捷控制
This commit is contained in:
2022-10-25 09:34:58 +08:00
parent 15e9854c48
commit 652135f45c
27 changed files with 1258 additions and 123 deletions

View File

@@ -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() {
/**
* 定位请求回调函数