Skip to content

Commit

Permalink
Update constant
Browse files Browse the repository at this point in the history
  • Loading branch information
danesfeder committed Mar 22, 2018
1 parent afb3781 commit 3fa053f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 3fa053f

Please sign in to comment.