From 242c16d2e382488a38240193538769cd6bd38b42 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 28 Jun 2024 13:16:22 +0100 Subject: [PATCH] Fix CarPlay pop template crash --- Sources/MapboxNavigation/CarPlayManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/MapboxNavigation/CarPlayManager.swift b/Sources/MapboxNavigation/CarPlayManager.swift index 4b523642dc8..4509309d0c2 100644 --- a/Sources/MapboxNavigation/CarPlayManager.swift +++ b/Sources/MapboxNavigation/CarPlayManager.swift @@ -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)