Skip to content

Conversation

@danesfeder
Copy link
Contributor

Closes #947

Allows Milestones to be added to the NavigationView

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor related question, not blocking the PR though.

List<Milestone> milestones = options.milestones();
if (milestones != null && !milestones.isEmpty()) {
for (Milestone milestone : milestones) {
navigation.addMilestone(milestone);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we ever considered adding an addMilestones(List<Milestone>) API to MapboxNavigation? That way we could use List#addAll for example and remove the for each loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Guardiola31337 this is a great idea - will add, thanks!

@danesfeder danesfeder force-pushed the dan-milestone-view-options branch 5 times, most recently from 9a8d48b to ac9072b Compare May 30, 2018 14:41
@danesfeder danesfeder force-pushed the dan-milestone-view-options branch from ac9072b to a877b2e Compare May 30, 2018 15:22
@danesfeder
Copy link
Contributor Author

@Guardiola31337 Milestone list is now a Hashset in MapboxNavigation 🚀

@danesfeder danesfeder merged commit 03be5e8 into master May 30, 2018
@danesfeder danesfeder deleted the dan-milestone-view-options branch May 30, 2018 15:49
@danesfeder danesfeder mentioned this pull request May 31, 2018
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants