Skip to content
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

Fixed #1171: Changed OTP Routes Color Logic #1172

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Adithya-hv
Copy link
Contributor

Resolve Color

This function gets the color for the polylines, previously, it checked if the leg was a transit route after checking the leg's route color. We want transits to always be checked first and set to a default color. This change does not affect showing routes outside of the trip planner.

Transit Color

The color #006500 was added to OTP constants as the dedicated color for transits, this color is the same as the HUD of the trip planner.

Screenshots

image

Issues Affected

Closes #1171

Pull Request Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Apply the AndroidStyle.xml style template to your code in Android Studio.

  • Run the unit tests with gradlew connectedObaGoogleDebugAndroidTest to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them for the initial submission of the pull request. When addressing comments on a pull request, please push a new commit per comment when possible (reviewers will squash and merge using GitHub merge tool)

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.

Hard to Distinguish Between Different Routes in Trip Planner
1 participant