From 306ac77939e1f2fdd18acca427d5cc1203fbc56e Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 13 Jun 2025 18:38:56 +0200 Subject: [PATCH] Fix CPAlertAction.Style to ensure closure is called --- iphone/Maps/Classes/CarPlay/CarPlayService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/CarPlay/CarPlayService.swift b/iphone/Maps/Classes/CarPlay/CarPlayService.swift index f709d98dd..9a22a7461 100644 --- a/iphone/Maps/Classes/CarPlay/CarPlayService.swift +++ b/iphone/Maps/Classes/CarPlay/CarPlayService.swift @@ -257,7 +257,7 @@ final class CarPlayService: NSObject { mapTemplate.leadingNavigationBarButtons = [] mapTemplate.trailingNavigationBarButtons = [] mapTemplate.mapButtons = [] - let doneAction = CPAlertAction(title: L("done"), style: .cancel) { [unowned self] _ in + let doneAction = CPAlertAction(title: L("done"), style: .default) { [unowned self] _ in self.updateMapTemplateUIToBase() } var subtitle = ""