diff --git a/navigation/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/NavigationEngine.java b/navigation/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/NavigationEngine.java index 512717c854a..e2750a888ac 100644 --- a/navigation/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/NavigationEngine.java +++ b/navigation/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/NavigationEngine.java @@ -131,7 +131,7 @@ private void notifyOffRouteChange(boolean isUserOffRoute, Location location) { if (isUserOffRoute) { if (location.getTime() > timeIntervalSinceLastOffRoute - + TimeUnit.SECONDS.toMillis(NavigationConstants.SECONDS_BEFORE_REROUTE)) { + + TimeUnit.SECONDS.toMillis(options.getSecondsBeforeReroute())) { for (OffRouteListener offRouteListener : offRouteListeners) { offRouteListener.userOffRoute(location); }