mirror of
https://github.com/home-assistant/android
synced 2024-09-06 17:23:32 +00:00
Correct accuracy for location tracking (#706)
* Correct accuracy * Typo
This commit is contained in:
parent
06d97b5e01
commit
ceedaf4cbe
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue