From a9c78e6ddc96bce12a164ecc0c55716d7d4257a2 Mon Sep 17 00:00:00 2001 From: eladgel Date: Sun, 5 Jan 2020 14:44:43 +0200 Subject: [PATCH 1/2] Update AndroidManifest.xml --- android/src/main/AndroidManifest.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index d99568c..687679c 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,10 +1,11 @@ - + + - \ No newline at end of file + From fff09ae32910bc2373d7917c9bd6754ed4b2ec66 Mon Sep 17 00:00:00 2001 From: eladgel Date: Sun, 5 Jan 2020 14:45:21 +0200 Subject: [PATCH 2/2] Update RNGooglePlacesModule.java --- .../reactnative/rngoogleplaces/RNGooglePlacesModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule.java b/android/src/main/java/com/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule.java index b65868f..e62608e 100644 --- a/android/src/main/java/com/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule.java +++ b/android/src/main/java/com/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule.java @@ -313,7 +313,7 @@ public void getCurrentPlace(ReadableArray fields, final Promise promise) { List selectedFields = getPlaceFields(fields.toArrayList(), true); - if (checkPermission(ACCESS_FINE_LOCATION)) { + if (checkPermission(ACCESS_FINE_LOCATION) && checkPermission(ACCESS_WIFI_STATE)) { findCurrentPlaceWithPermissions(selectedFields, promise); } }