From e840a3fa6ead9c58682870fd7f593e1d939864c0 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Tue, 22 Mar 2016 12:28:10 +0300 Subject: [PATCH] [ios] Fixed location state after welcome screen. --- .../MapViewControls/Welcome/MWMFirstLaunchController.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Welcome/MWMFirstLaunchController.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/Welcome/MWMFirstLaunchController.mm index 1ec579aa08..adc55a8f48 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/Welcome/MWMFirstLaunchController.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Welcome/MWMFirstLaunchController.mm @@ -48,12 +48,14 @@ void requestNotifications() void zoomToCurrentPosition() { + auto & f = GetFramework(); + f.SwitchMyPositionNextMode(); LocationManager * locationManager = MapsAppDelegate.theApp.locationManager; if (![locationManager lastLocationIsValid]) return; m2::PointD const centerPt = locationManager.lastLocation.mercator; int const zoom = 13; - GetFramework().SetViewportCenter(centerPt, zoom); + f.SetViewportCenter(centerPt, zoom); } NSInteger constexpr kRequestLocationPage = 2;