From 95c616d76f76a4ac8666b7929a3b9c7ec375cccf Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 12 Oct 2024 20:31:16 +0900 Subject: [PATCH] fix: revert hasPermission() --- src/android/Geolocation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } /*