Skip to content

Mapbox Navigation SDK v0.16.0

Choose a tag to compare

@danesfeder danesfeder released this 20 Jul 15:26
· 4709 commits to main since this release

Release Notes

Navigation Core libandroid-navigation

  • Default notification now considers 24-hour time formatting from MapboxNavigationOptions.
  • Bug fixes and updates.

Navigation UI libandroid-navigation-ui

  • Added ability to stop navigation, using NavigationView#stopNavigation(), while the NavigationView is still showing (previously, the view had to be destroyed to stop navigation).
  • Added BannerInstructionListener and SpeechAnnouncementListener that can be added to NavigationViewOptions and can intercept announcements or new instructions and will allow developers to edit or stop them from continuing. Example:
    @Override
    public SpeechAnnouncement willVoice(SpeechAnnouncement announcement) {
      return announcement.toBuilder().announcement("All announcments will be the same.").build();
    }
    
    @Override
    public BannerInstructions willDisplay(BannerInstructions instructions) {
      return instructions;
    }
  • Day / Night mode updates:
    • If using NavigationLauncher, we will automatically set AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_AUTO); only if your device is currently following the system setting.
    • If using NavigationView within your own Activity the view will update based on whatever the current mode is in the Activity.
  • MapboxNavigationNotification (default notification provided by the SDK) layout updates and improvements.
  • 🐛 fix for re-initializing a NavigationView in a Fragment that was added to the back stack.
  • Bug fixes.

Changelog:

  • Fixed error by only accepting SUCCESS state #1127
  • Make navigation map null when shutting navigation view down #1125
  • Update Maps SDK 6.3.0 and Telem 3.1.4 #1124
  • Fix IllegalArgumentException when updating InstructionList #1123
  • Update MapboxNavigationNotification to consider 24 hour time formatting #1115
  • Prevent route overview animation with insufficient route data #1120
  • Prevent NavigationNotification update after unregistered #1118
  • Refactor InstructionListAdapter and limit roundabout degrees in ManeuverView #1064
  • Improve catching low point amounts #1122
  • Simplify find current banner and voice instructions algorithms #1117
  • Update TimeFormatter to include localized Strings #1106
  • Add InstructionListener for intercepting Voice / Banner Instructions #1107
  • NavigationService refactor and tests #1066
  • Add dual navigation map example to the test app #1092
  • Update LocationLayerPlugin 0.6.0 #1102
  • Fix navigation camera on start null pointer exception #1094
  • Fix navigation map route index out of bounds exception #1093
  • Ignore arrival checks after route has finished #1070
  • Added InstructionView list state to saveInstanceState #1079
  • Update Transifex translations #1088
  • Rename MapView id included in NavigationView #1087
  • Update Transifex translations #1078
  • Update navigation view activity (from the test app) naming #1076
  • Add end navigation functionality to navigation view #959
  • Fix voiceLanguage NPE and add tests for NavigationSpeechPlayer #1054
  • Fix vector drawables for < API 21 in test Application #1067
  • Re-did the navigation notification layout #1059
  • Setup AppCompatDelegate night mode to automatic #1063
  • Fix upcoming maneuver arrow underneath road labels #1053