-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NAVAND-1636: do not set routes to NN when session is already started #7661
Conversation
ChangelogFeaturesBug fixes and improvements
Known issues
|
private fun resetTripSessionRoutes() { | ||
threadController.getMainScopeAndRootJob().scope.launch(Dispatchers.Main.immediate) { | ||
routeUpdateMutex.withLock { | ||
val routes = directionsSession.routes | ||
val legIndex = latestLegIndex ?: directionsSession.initialLegIndex | ||
setRoutesToTripSession(routes, SetRoutes.NewRoutes(legIndex)) | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was it needed? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe there were cases when the routes might have been present on the NavSDK side, but not on NN side. Or it was added just in case, because we didn't know exactly how NN works with routes.
a502003
to
fa64077
Compare
Codecov Report
@@ Coverage Diff @@
## release-v2.17 #7661 +/- ##
================================================
Coverage 74.08% 74.08%
Complexity 6152 6152
================================================
Files 833 833
Lines 33128 33130 +2
Branches 3957 3958 +1
================================================
+ Hits 24544 24546 +2
Misses 7050 7050
Partials 1534 1534
|
8660063
to
0eb686b
Compare
5d8b81f
to
8c70bf5
Compare
a05758f
to
6438122
Compare
Detailed description is in the ticket: https://mapbox.atlassian.net/browse/NAVAND-1636?focusedCommentId=206653