Correct accuracy for location tracking (#706)

* Correct accuracy

* Typo
This commit is contained in:
Daniel Shokouhi 2020-08-06 19:06:59 -07:00 committed by GitHub
parent 06d97b5e01
commit ceedaf4cbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,7 @@ class LocationBroadcastReceiver : LocationBroadcastReceiverBase() {
TAG,
"Got single accurate location update: ${locationResult?.lastLocation}"
)
if (locationResult != null && locationResult.lastLocation.accuracy <= 1) {
if (locationResult != null && locationResult.lastLocation.accuracy <= MINIMUM_ACCURACY) {
Log.d(TAG, "Location accurate enough, all done with high accuracy.")
runBlocking { sendLocationUpdate(locationResult.lastLocation) }
LocationServices.getFusedLocationProviderClient(context)