[iOS] Fixed view port after recovering a trip on the carplay

This commit is contained in:
Zoia Pribytkova 2019-08-21 17:53:18 +03:00 committed by Aleksandr Zatsepin
parent 9e98a19795
commit a4190ccca5

View file

@ -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()
}
}