version:2.0.8
bugfixes: update:更滑图标,增加获取系统设置
This commit is contained in:
@@ -96,7 +96,12 @@ public class AmapManager {
|
||||
Gson gson = new Gson();
|
||||
Type type = new TypeToken<MapBean>() {
|
||||
}.getType();
|
||||
mMapBean = gson.fromJson(jsonString, type);
|
||||
try {
|
||||
mMapBean = gson.fromJson(jsonString, type);
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "initAmap: ");
|
||||
mMMKV.remove(CommonConfig.MAP_LOCATION_JSON_KEY);
|
||||
}
|
||||
} else {
|
||||
Log.e(TAG, "initAmap: jsonString is empty");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user