Commit 32bbca854482da699a2a92a3c2e03b9e2be94394
1 parent
1086edac
升级
Showing
2 changed files
with
4 additions
and
1 deletions
lib/android/src/main/java/cn/feewee/amap3d/modules/AMapGeolocationModule.java
... | ... | @@ -7,6 +7,7 @@ import com.amap.api.location.AMapLocationListener; |
7 | 7 | import com.amap.api.services.core.AMapException; |
8 | 8 | import com.amap.api.services.core.LatLonPoint; |
9 | 9 | import com.amap.api.services.core.PoiItemV2; |
10 | +import com.amap.api.services.core.ServiceSettings; | |
10 | 11 | import com.amap.api.services.geocoder.GeocodeSearch; |
11 | 12 | import com.amap.api.services.geocoder.RegeocodeAddress; |
12 | 13 | import com.amap.api.services.geocoder.RegeocodeQuery; |
... | ... | @@ -64,6 +65,8 @@ public class AMapGeolocationModule extends ReactContextBaseJavaModule implements |
64 | 65 | AMapLocationClient.setApiKey(key); |
65 | 66 | AMapLocationClient.updatePrivacyShow(reactContext, true, true); |
66 | 67 | AMapLocationClient.updatePrivacyAgree(reactContext, true); |
68 | + ServiceSettings.updatePrivacyShow(reactContext,true,true); | |
69 | + ServiceSettings.updatePrivacyAgree(reactContext,true); | |
67 | 70 | client = new AMapLocationClient(reactContext); |
68 | 71 | geocodeSearch = new GeocodeSearch(reactContext); |
69 | 72 | client.setLocationListener(this); | ... | ... |