From 3fa053feccb63ebe52486d2693393d76361ab26a Mon Sep 17 00:00:00 2001 From: danesfeder Date: Thu, 22 Mar 2018 09:44:09 -0400 Subject: [PATCH] Update constant --- .../android/navigation/v5/navigation/NavigationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationService.java b/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationService.java index 6d574703c84..46619ed38b2 100644 --- a/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationService.java +++ b/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationService.java @@ -45,7 +45,7 @@ public class NavigationService extends Service implements LocationEngineListener // Message id used when a new location update occurs and we send to the thread. private static final int MSG_LOCATION_UPDATED = 1001; - private static final int HORIZONTAL_ACCURACY_THRESHOLD = 100; + private static final int HORIZONTAL_ACCURACY_THRESHOLD_IN_METERS = 100; private final IBinder localBinder = new LocalBinder(); @@ -289,7 +289,7 @@ private void startForegroundNotification(Notification notification, int notifica private boolean isValidLocationUpdate(Location location) { return location != null && location.hasSpeed() - && location.getAccuracy() <= HORIZONTAL_ACCURACY_THRESHOLD; + && location.getAccuracy() <= HORIZONTAL_ACCURACY_THRESHOLD_IN_METERS; } /**