From 9e09ffcc6a3acf4182e26819cb2e76480e148fee Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Thu, 28 Jan 2016 11:44:43 +0300 Subject: [PATCH] [ios] Updated auto download settings. --- iphone/Maps/Classes/MapViewController.mm | 2 +- iphone/Maps/Settings/SettingsViewController.mm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index dc99c8b730..459e2834a1 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -598,7 +598,7 @@ NSString * const kAuthorizationSegue = @"Map2AuthorizationSegue"; { if (platform::migrate::NeedMigrate()) return; - bool autoDownloadEnabled = false; + bool autoDownloadEnabled = true; (void)Settings::Get(kAutoDownloadEnabledKey, autoDownloadEnabled); if (autoDownloadEnabled && Platform::ConnectionStatus() == Platform::EConnectionType::CONNECTION_WIFI) GetFramework().GetCountryTree().GetActiveMapLayout().DownloadMap(idx, MapOptions::MapWithCarRouting); diff --git a/iphone/Maps/Settings/SettingsViewController.mm b/iphone/Maps/Settings/SettingsViewController.mm index fbb22dd551..e32eb9e27c 100644 --- a/iphone/Maps/Settings/SettingsViewController.mm +++ b/iphone/Maps/Settings/SettingsViewController.mm @@ -134,11 +134,11 @@ typedef NS_ENUM(NSUInteger, Section) // Auto download case 2: { - bool autoDownloadEnabled = false; + bool autoDownloadEnabled = true; (void)Settings::Get(kAutoDownloadEnabledKey, autoDownloadEnabled); cell = [tableView dequeueReusableCellWithIdentifier:[SwitchCell className]]; SwitchCell * customCell = static_cast(cell); - customCell.titleLabel.text = L(@"pref_auto_download_title"); + customCell.titleLabel.text = L(@"mwm_autodownload"); customCell.switchButton.on = autoDownloadEnabled; customCell.delegate = self; break;