From 8902973ee44c70c8e39612c254a3f0676fa09bea Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Fri, 29 Jan 2016 16:38:59 +0300 Subject: [PATCH] [ios] Fixed auto-download while not on MapViewController. --- iphone/Maps/Classes/MapViewController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index 46609ef7f6..55b5403760 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -596,7 +596,7 @@ NSString * const kAuthorizationSegue = @"Map2AuthorizationSegue"; f.SetAutoDownloadListener([self](storage::TIndex const & idx) { - if (platform::migrate::NeedMigrate()) + if (![self isEqual:self.navigationController.topViewController] || platform::migrate::NeedMigrate()) return; bool autoDownloadEnabled = true; (void)Settings::Get(kAutoDownloadEnabledKey, autoDownloadEnabled);