diff --git a/src/android/Geolocation.java b/src/android/Geolocation.java index be15ca47..7b54c2d8 100644 --- a/src/android/Geolocation.java +++ b/src/android/Geolocation.java @@ -91,11 +91,11 @@ public void onRequestPermissionResult(int requestCode, String[] permissions, int public boolean hasPermission(String[] permissions) { for (String p : permissions) { - if (PermissionHelper.hasPermission(this, p)) { - return true; + if (!PermissionHelper.hasPermission(this, p)) { + return false; } } - return false; + return true; } /*