From a4190ccca582ebf04b2f2ff9fd7e455f422f137c Mon Sep 17 00:00:00 2001 From: Zoia Pribytkova Date: Wed, 21 Aug 2019 17:53:18 +0300 Subject: [PATCH] [iOS] Fixed view port after recovering a trip on the carplay --- iphone/Maps/Classes/CarPlay/CarPlayService.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iphone/Maps/Classes/CarPlay/CarPlayService.swift b/iphone/Maps/Classes/CarPlay/CarPlayService.swift index a709fd9abc..783835c82a 100644 --- a/iphone/Maps/Classes/CarPlay/CarPlayService.swift +++ b/iphone/Maps/Classes/CarPlay/CarPlayService.swift @@ -401,9 +401,12 @@ extension CarPlayService: CPMapTemplateDelegate { guard let info = routeChoice.userInfo as? RouteInfo, let estimates = createEstimates(routeInfo: info) else { applyUndefinedEstimates(template: mapTemplate, trip: trip) + router?.rebuildRoute() return } mapTemplate.updateEstimates(estimates, for: trip) + routeChoice.userInfo = nil + router?.rebuildRoute() } }