Skip to content

Commit

Permalink
add navigation reroute events support (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guardiola31337 authored Oct 5, 2017
1 parent e1de98d commit 0038b42
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,9 @@ private boolean isANavigationEvent(String eventType) {
boolean isFeedback = eventType.equalsIgnoreCase(MapboxNavigationEvent.TYPE_FEEDBACK);
boolean isArrived = eventType.equalsIgnoreCase(MapboxNavigationEvent.TYPE_ARRIVE);
boolean isCanceled = eventType.equalsIgnoreCase(MapboxNavigationEvent.TYPE_CANCEL);
boolean isReroute = eventType.equalsIgnoreCase(MapboxNavigationEvent.TYPE_REROUTE);

boolean isANavigationEvent = isDepart || isFeedback || isArrived || isCanceled;
boolean isANavigationEvent = isDepart || isFeedback || isArrived || isCanceled || isReroute;

return isANavigationEvent;
}
Expand Down

0 comments on commit 0038b42

Please sign in to comment.