Skip to content

Commit 95c616d

Browse files
committed
fix: revert hasPermission()
1 parent 3082041 commit 95c616d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/android/Geolocation.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ public void onRequestPermissionResult(int requestCode, String[] permissions, int
9191

9292
public boolean hasPermission(String[] permissions) {
9393
for (String p : permissions) {
94-
if (PermissionHelper.hasPermission(this, p)) {
95-
return true;
94+
if (!PermissionHelper.hasPermission(this, p)) {
95+
return false;
9696
}
9797
}
98-
return false;
98+
return true;
9999
}
100100

101101
/*

0 commit comments

Comments
 (0)