fun changeRoutesPreviewPrimaryRoute(newPrimaryRoute: NavigationRoute)

Changes primary route for current preview state without changing order of RoutesPreview.originalRoutesList. Order is important for a case when routes are displayed as a list on UI, the list shouldn't change order when a user choose different primary route.

In case changeRoutesPreviewPrimaryRoute is called while the the other set of routes are being processed, the current state with a new routes will be reapplied after the current processing.



is a new primary route


if newPrimaryRoute isn't found in the previewed routes list