Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kmadsen committed Aug 11, 2022
1 parent 84e3968 commit 7b095a4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ class MapboxNavigation @VisibleForTesting internal constructor(
"""
A different MapboxNavigation instance already exists.
Make sure to destroy it with #onDestroy before creating a new one.
Also see MapboxNavigationProvider for instance management assistance.
Also see MapboxNavigationApp for instance management assistance.
""".trimIndent()
)
}
Expand Down Expand Up @@ -841,8 +841,9 @@ class MapboxNavigation @VisibleForTesting internal constructor(
* versionInfo: RoadGraphVersionInfo?
* ) {
* if (isUpdateAvailable) {
* mapboxNavigation.onDestroy()
* mapboxNavigation = MapboxNavigationProvider.create(...)
* val currentOptions = mapboxNavigation.navigationOptions
* MapboxNavigationApp.disable()
* MapboxNavigationApp.setup(currentOptions)
* }
* }
* })
Expand Down

0 comments on commit 7b095a4

Please sign in to comment.