Skip to content

Commit

Permalink
fix: broken oss build from refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
growse committed Jul 1, 2024
1 parent 1006773 commit d229f94
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import android.os.Looper
import androidx.core.location.LocationManagerCompat
import androidx.core.os.ExecutorCompat
import java.util.WeakHashMap
import org.owntracks.android.location.LocationRequest.Companion.PRIORITY_HIGH_ACCURACY
import timber.log.Timber

class AospLocationProviderClient(val context: Context) : LocationProviderClient() {
Expand All @@ -32,9 +31,9 @@ class AospLocationProviderClient(val context: Context) : LocationProviderClient(

private val callbacks = WeakHashMap<LocationCallback, LocationListener>()

private fun locationSourcesForPriority(priority: Int): Set<LocationSources> =
private fun locationSourcesForPriority(priority: LocatorPriority): Set<LocationSources> =
when (priority) {
PRIORITY_HIGH_ACCURACY -> setOf(LocationSources.GPS)
LocatorPriority.HighAccuracy -> setOf(LocationSources.GPS)
else ->
setOf(LocationSources.FUSED, LocationSources.NETWORK, LocationSources.PASSIVE)
.intersect(availableLocationProviders)
Expand Down

0 comments on commit d229f94

Please sign in to comment.