diff --git a/src/app/grapheneos/gmscompat/location/OsLocationProvider.kt b/src/app/grapheneos/gmscompat/location/OsLocationProvider.kt index 8db0149..280f516 100644 --- a/src/app/grapheneos/gmscompat/location/OsLocationProvider.kt +++ b/src/app/grapheneos/gmscompat/location/OsLocationProvider.kt @@ -40,6 +40,8 @@ class OsLocationProvider(val name: String, val properties: ProviderProperties?, val fudger: LocationFudger? = when (client.permission) { Permission.COARSE -> { when (granularity) { + LocationRequest.GRANULARITY_COARSE, + LocationRequest.GRANULARITY_PERMISSION_LEVEL, -> null LocationRequest.GRANULARITY_FINE -> throw SecurityException() else -> throw IllegalArgumentException() }