Skip to content

Remove setting voiceLanguage / voice unitType in RouteFetcher#1046

Merged
danesfeder merged 1 commit into
masterfrom
dan-null-voice-fix
Jun 21, 2018
Merged

Remove setting voiceLanguage / voice unitType in RouteFetcher#1046
danesfeder merged 1 commit into
masterfrom
dan-null-voice-fix

Conversation

@danesfeder
Copy link
Copy Markdown
Contributor

Closes #991

In the RouteFetcher we are currently setting the route request language and voice unit from the cached route progress object.

This is actually redundant, done here https://github.com/mapbox/mapbox-navigation-android/compare/dan-null-voice-fix?expand=1#diff-0d0ceee348988e299f61b3730574d4a8R102

For the re-route request we should be using the RouteOptions#language as the the directions route voiceLanguage can be null, causing the issue seen in the ticket.
https://github.com/mapbox/mapbox-navigation-android/compare/dan-null-voice-fix?expand=1#diff-0d0ceee348988e299f61b3730574d4a8L105

@danesfeder danesfeder merged commit 8d9b6b4 into master Jun 21, 2018
@danesfeder danesfeder deleted the dan-null-voice-fix branch June 21, 2018 20:43
@danesfeder danesfeder mentioned this pull request Jun 21, 2018
11 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.

Null voiceLanguage for Hebrew and Indonesian

2 participants