- Notifications
You must be signed in to change notification settings - Fork320
0.24.0 Migration Guide
Dan Nesfeder edited this pageNov 30, 2018 ·1 revision
- Use most recent raw Location when building snapped Location
- Fix voice instructions cache
- Fix NavigationMapRoute ArrayIndexOutOfBoundsException
InFix voice instructions cache we updated how theNavigationSpeechPlayer is created. This is the same speech player we use by default in theNavigationView, but you are able to use it as a separate component as well. We now give you control over theCache used to pre-cache voice instructions.
New initialization:
val english = US.language val cache = Cache(File(application.cacheDir, EXAMPLE_INSTRUCTION_CACHE), TEN_MEGABYTE_CACHE_SIZE) val voiceInstructionLoader = VoiceInstructionLoader(getApplication(), accessToken, cache) val speechPlayerProvider = SpeechPlayerProvider(getApplication(), english, true, voiceInstructionLoader) speechPlayer = NavigationSpeechPlayer(speechPlayerProvider)InUse most recent raw Location when building snapped Location we updatedSnapToRoute#getSnappedLocationWith to take a rawLocation in addition to theNavigationStatus:
Old:
public Location getSnappedLocationWith(NavigationStatus status)New:
public Location getSnappedLocationWith(NavigationStatus status, Location rawLocation)