Skip to content

Commit ace418c

Browse files
authored
Fix datasetProfileIdentifier in PassiveLocationManager constructor (#3867)
* Fix datasetProfileIdentifier argument in PassiveLocationManager constructor * Add changelog record
1 parent 025309a commit ace418c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
### Other changes
3636

3737
* Added the `NavigationViewControllerDelegate.navigationViewController(_:, didSubmitArrivalFeedback:)` method which is called to notify that the user submitted the end of route feedback. Implementation of this method receives an `EndOfRouteFeedback` object with user's rating and comment. ([#3842](https://github.com/mapbox/mapbox-navigation-ios/pull/3842))
38+
* Fixed an issue where value of `datasetProfileIdentifier` argument was ignored in `PassiveLocationManager` constructor. ([#3867](https://github.com/mapbox/mapbox-navigation-ios/pull/3867))
3839

3940
## v2.4.1
4041

Sources/MapboxCoreNavigation/PassiveLocationManager.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ open class PassiveLocationManager: NSObject {
5757

5858
private var _eventsManager: NavigationEventsManager?
5959

60-
private let sharedNavigator = Navigator.shared
60+
private let sharedNavigator: Navigator
6161

6262
/**
6363
The underlying navigator that performs map matching.
@@ -268,6 +268,8 @@ open class PassiveLocationManager: NSObject {
268268
if let datasetProfileIdentifier = datasetProfileIdentifier {
269269
Navigator.datasetProfileIdentifier = datasetProfileIdentifier
270270
}
271+
272+
self.sharedNavigator = Navigator.shared
271273

272274
self.directions = directions
273275

0 commit comments

Comments
 (0)