Skip to content

Commit

Permalink
fix: revert hasPermission()
Browse files Browse the repository at this point in the history
  • Loading branch information
kumo01GitHub committed Oct 12, 2024
1 parent 3082041 commit 95c616d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/Geolocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit 95c616d

Please sign in to comment.