Skip to content

Commit

Permalink
Fix CarPlay pop template crash
Browse files Browse the repository at this point in the history
  • Loading branch information
chizhavko committed Jun 28, 2024
1 parent 8d74d1a commit 242c16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MapboxNavigation/CarPlayManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ extension CarPlayManager {
previewMapTemplate.showTripPreviews([modifiedTrip], textConfiguration: previewText)

if currentActivity == .previewing {
interfaceController.popTemplate(animated: false)
interfaceController.safePopTemplate(animated: false)
interfaceController.pushTemplate(previewMapTemplate, animated: false)
} else {
interfaceController.pushTemplate(previewMapTemplate, animated: true)
Expand Down

0 comments on commit 242c16d

Please sign in to comment.