Skip to content

Commit

Permalink
use fused provider instead of gps provider
Browse files Browse the repository at this point in the history
allows other providers (such as the upcoming network location provider) to work when rerouting location requests to the OS
  • Loading branch information
soupslurpr committed Dec 22, 2024
1 parent 3b6a981 commit fba5078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/grapheneos/gmscompat/location/OsLocationProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ class OsLocationProvider(val name: String, val properties: ProviderProperties?,
val name = if (priority == LocationRequest.PRIORITY_NO_POWER) {
LocationManager.PASSIVE_PROVIDER
} else {
LocationManager.GPS_PROVIDER
LocationManager.FUSED_PROVIDER
}
return get(client, name, granularity)
}

fun get(client: Client, granularity: Int): OsLocationProvider {
val name = LocationManager.GPS_PROVIDER
val name = LocationManager.FUSED_PROVIDER
return get(client, name, granularity)
}

Expand Down

0 comments on commit fba5078

Please sign in to comment.