-
Notifications
You must be signed in to change notification settings - Fork 320
Add silent waypoints support into NavigationRoute #1733
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
Conversation
danesfeder
left a comment
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.
@Guardiola31337 some minor comments, thanks for running with this!
|
|
||
| String waypoints = options.waypoints(); | ||
| if (!TextUtils.isEmpty(waypoints)) { | ||
| Integer[] splittedWaypointIndices = parseWaypointIndices(waypoints); |
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.
NIT splitted > split
| * @param waypoints integer array of coordinate indices to be used as waypoints | ||
| * @return this builder for chaining options together | ||
| */ | ||
| public Builder addWaypoints(@Nullable @IntRange(from = 0) Integer... waypoints) { |
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.
It may be better to be more specific with our naming here, as we already have a addWaypoint. Maybe addSilentWaypoint or addViaWaypoint?
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.
Yeah, I couldn't agree more. Will fix 🚀
|
@Guardiola31337 any ideas what's going on with proguard in CI? 🤔 |
a02d79e to
37ed39e
Compare
Codecov Report
@@ Coverage Diff @@
## master #1733 +/- ##
============================================
+ Coverage 29.91% 30.01% +0.09%
Complexity 843 843
============================================
Files 220 220
Lines 8134 8147 +13
Branches 627 629 +2
============================================
+ Hits 2433 2445 +12
Misses 5471 5471
- Partials 230 231 +1 |
|
Thanks for the feedback @danesfeder this is updated and ready for another round of 👀
It seems something weird happened with the previous build. It's working now ¯\_(ツ)_/¯ |
| if (!TextUtils.isEmpty(waypointTargets)) { | ||
| Point[] splittedWaypointTargets = parseWaypointTargets(waypointTargets); | ||
| directionsBuilder.addWaypointTargets(splittedWaypointTargets); | ||
| Point[] splitdWaypointTargets = parseWaypointTargets(waypointTargets); |
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.
NIT splitd is not a word: split I think is what you're looking for
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.
37ed39e to
3c2371c
Compare
3c2371c to
f3bd299
Compare
danesfeder
left a comment
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.
Thanks for these updates @Guardiola31337, let's merge when 4.4.0 is good to go 🚢
f3bd299 to
b3b9184
Compare
|
Found 👇 during CI Robo Tests It seems it happened randomly when jumping between activities fastly i.e. Should we add a |
b3b9184 to
e76d3ce
Compare
Actually, I think it's even a better approach because @danesfeder @devotaaabel have you seen a response with |
danesfeder
left a comment
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.
@Guardiola31337 thanks for the updates here and the logic adjustment for the valid route check 🚢

Edited:
viasilent waypoints support intoNavigationRouteFixes #1730
Note: current branch is using MAS
SNAPSHOT- MAS4.4.0needs to be released and theSNAPSHOTdependency removed before this PR can merge.cc @osana