Skip to content

Commit 0c76fd6

Browse files
committed
Fix a permission check
1 parent 9e12336 commit 0c76fd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/xyz/zood/george/Permissions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static boolean checkBackgroundLocationPermission(@NonNull Context ctx) {
2222
@AnyThread @CheckResult
2323
public static boolean checkForegroundLocationPermission(@NonNull Context ctx) {
2424
for (String perm : getForegroundLocationPermissions()) {
25-
if (ContextCompat.checkSelfPermission(ctx, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
25+
if (ContextCompat.checkSelfPermission(ctx, perm) != PackageManager.PERMISSION_GRANTED) {
2626
return false;
2727
}
2828
}

0 commit comments

Comments
 (0)