From 6ecb998e455099809c9af694646ea1c3733ddae7 Mon Sep 17 00:00:00 2001 From: soupslurpr <92235850+soupslurpr@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:19:16 -0800 Subject: [PATCH] use fused provider instead of gps provider allows other providers (such as the upcoming network location provider) to work when rerouting location requests to the OS --- src/app/grapheneos/gmscompat/location/OsLocationProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/grapheneos/gmscompat/location/OsLocationProvider.kt b/src/app/grapheneos/gmscompat/location/OsLocationProvider.kt index 280f516..715d595 100644 --- a/src/app/grapheneos/gmscompat/location/OsLocationProvider.kt +++ b/src/app/grapheneos/gmscompat/location/OsLocationProvider.kt @@ -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) }